From 85022bd9b22c3119bc72b51d070df34ddeeedad5 Mon Sep 17 00:00:00 2001 From: naren Date: Mon, 8 Apr 2019 13:37:49 -0700 Subject: [PATCH] Do not mangle block descriptors --- lib/cocoapods_mangle/defines.rb | 3 +++ 1 file changed, 3 insertions(+) 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