@@ -27,7 +27,7 @@ def build_for_iosish_platform(sandbox,
2727 other_options += [ 'BITCODE_GENERATION_MODE=bitcode' ]
2828 end
2929 xcodebuild ( sandbox , target_label , device , deployment_target , other_options )
30- xcodebuild ( sandbox , target_label , simulator , deployment_target , other_options + [ 'ARCHS=x86_64' , 'ONLY_ACTIVE_ARCH=NO' , 'DEBUG_INFORMATION_FORMAT=dwarf' ] )
30+ xcodebuild ( sandbox , target_label , simulator , deployment_target , other_options + [ 'ARCHS=x86_64' , 'ONLY_ACTIVE_ARCH=NO' ] )
3131
3232 # paths
3333 root_name = target . pod_name
@@ -56,11 +56,11 @@ def build_for_iosish_platform(sandbox,
5656 # handle the dSYM files
5757 device_dsym = "#{ device_framwork_path } .dSYM"
5858 if File . exist? device_dsym
59- ## lipo the simulator dsym
60- # tmp_lipoed_binary_path = "#{output_path}/#{module_name}.draft"
61- # 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}`
62- # puts lipo_log unless File.exist?(tmp_lipoed_binary_path)
63- # FileUtils.mv tmp_lipoed_binary_path, "#{device_framwork_path}.dSYM/Contents/Resources/DWARF/#{module_name}", :force => true
59+ # lipo the simulator dsym
60+ tmp_lipoed_binary_path = "#{ output_path } /#{ module_name } .draft"
61+ 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 } `
62+ puts lipo_log unless File . exist? ( tmp_lipoed_binary_path )
63+ FileUtils . mv tmp_lipoed_binary_path , "#{ device_framwork_path } .dSYM/Contents/Resources/DWARF/#{ module_name } " , :force => true
6464 FileUtils . mv device_dsym , output_path , :force => true
6565 end
6666
0 commit comments