Skip to content

Commit

Permalink
Merge pull request #16 from intercom/naren/block-descriptors
Browse files Browse the repository at this point in the history
Do not mangle block descriptors
  • Loading branch information
narenh authored Apr 8, 2019
2 parents 3b68c85 + 85022bd commit 5a2e431
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/cocoapods_mangle/defines.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,13 @@ def self.constants(binaries)
all_symbols = run_nm(binaries, '-gU')
consts = all_symbols.select { |const| const[/ S /] }
consts = consts.reject { |const| const[/_OBJC_/] }
consts = consts.reject { |const| const[/__block_descriptor.*/] }
consts = consts.map! { |const| const.gsub(/^.* _/, '') }
consts = consts.uniq

other_consts = all_symbols.select { |const| const[/ T /] }
other_consts = other_consts.reject { |const| const[/__copy_helper_block.*/] }
other_consts = other_consts.reject { |const| const[/__destroy_helper_block.*/] }
other_consts = other_consts.map! { |const| const.gsub(/^.* _/, '') }
other_consts = other_consts.uniq

Expand Down

0 comments on commit 5a2e431

Please sign in to comment.