diff --git a/lib/cocoapods_mangle/defines.rb b/lib/cocoapods_mangle/defines.rb index 3225799..94e2c11 100644 --- a/lib/cocoapods_mangle/defines.rb +++ b/lib/cocoapods_mangle/defines.rb @@ -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