@@ -25,11 +25,10 @@ def build_for_iosish_platform(sandbox,
2525
2626 other_options = [ ]
2727 if bitcode_enabled
28- other_options += [ 'OTHER_CFLAGS="-fembed-bitcode"' ]
2928 other_options += [ 'BITCODE_GENERATION_MODE=bitcode' ]
3029 end
3130 xcodebuild ( sandbox , target_label , device , deployment_target , other_options )
32- xcodebuild ( sandbox , target_label , simulator , deployment_target , other_options + [ "ARCHS=#{ simulator_default_arch } " , 'ONLY_ACTIVE_ARCH=NO' , 'DEBUG_INFORMATION_FORMAT=dwarf' ] )
31+ xcodebuild ( sandbox , target_label , simulator , deployment_target , other_options + [ "ARCHS=#{ simulator_default_arch } " , 'ONLY_ACTIVE_ARCH=NO' ] )
3332
3433 # paths
3534 target_name = target . name # equals target.label, like "AFNeworking-iOS" when AFNetworking is used in multiple platforms.
@@ -58,11 +57,11 @@ def build_for_iosish_platform(sandbox,
5857 # handle the dSYM files
5958 device_dsym = "#{ device_framwork_path } .dSYM"
6059 if File . exist? device_dsym
61- ## lipo the simulator dsym
62- # tmp_lipoed_binary_path = "#{output_path}/#{module_name}.draft"
63- # lipo_log = `lipo -create -output #{tmp_lipoed_binary_path} #{device_framwork_path}.dSYM /Contents/Resources/DWARF/#{module_name} #{simulator_framwork_path}.dSYM/Contents/Resources/DWARF/#{module_name}`
64- # puts lipo_log unless File.exist?(tmp_lipoed_binary_path)
65- # FileUtils.mv tmp_lipoed_binary_path, "#{device_framwork_path}.dSYM/Contents/Resources/DWARF/#{module_name}", :force => true
60+ # lipo the simulator dsym
61+ tmp_lipoed_binary_path = "#{ output_path } /#{ module_name } .draft"
62+ lipo_log = `lipo -create -output #{ tmp_lipoed_binary_path } #{ device_dsym } /Contents/Resources/DWARF/#{ module_name } #{ simulator_framwork_path } .dSYM/Contents/Resources/DWARF/#{ module_name } `
63+ puts lipo_log unless File . exist? ( tmp_lipoed_binary_path )
64+ FileUtils . mv tmp_lipoed_binary_path , "#{ device_framwork_path } .dSYM/Contents/Resources/DWARF/#{ module_name } " , :force => true
6665 FileUtils . mv device_dsym , output_path , :force => true
6766 end
6867
0 commit comments