Skip to content

Commit 5a2e431

Browse files
authored
Merge pull request #16 from intercom/naren/block-descriptors
Do not mangle block descriptors
2 parents 3b68c85 + 85022bd commit 5a2e431

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/cocoapods_mangle/defines.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,13 @@ def self.constants(binaries)
3838
all_symbols = run_nm(binaries, '-gU')
3939
consts = all_symbols.select { |const| const[/ S /] }
4040
consts = consts.reject { |const| const[/_OBJC_/] }
41+
consts = consts.reject { |const| const[/__block_descriptor.*/] }
4142
consts = consts.map! { |const| const.gsub(/^.* _/, '') }
4243
consts = consts.uniq
4344

4445
other_consts = all_symbols.select { |const| const[/ T /] }
46+
other_consts = other_consts.reject { |const| const[/__copy_helper_block.*/] }
47+
other_consts = other_consts.reject { |const| const[/__destroy_helper_block.*/] }
4548
other_consts = other_consts.map! { |const| const.gsub(/^.* _/, '') }
4649
other_consts = other_consts.uniq
4750

0 commit comments

Comments
 (0)