File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
lib/cocoapods-binary/rome Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -64,10 +64,14 @@ def build_for_iosish_platform(sandbox,
6464 device_dsym = "#{ device_framwork_path } .dSYM"
6565 if File . exist? device_dsym
6666 # lipo the simulator dsym
67- tmp_lipoed_binary_path = "#{ output_path } /#{ module_name } .draft"
68- 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 } `
69- puts lipo_log unless File . exist? ( tmp_lipoed_binary_path )
70- FileUtils . mv tmp_lipoed_binary_path , "#{ device_framwork_path } .dSYM/Contents/Resources/DWARF/#{ module_name } " , :force => true
67+ simulator_dsym = "#{ simulator_framwork_path } .dSYM"
68+ if File . exist? simulator_dsym
69+ tmp_lipoed_binary_path = "#{ output_path } /#{ module_name } .draft"
70+ lipo_log = `lipo -create -output #{ tmp_lipoed_binary_path } #{ device_dsym } /Contents/Resources/DWARF/#{ module_name } #{ simulator_dsym } /Contents/Resources/DWARF/#{ module_name } `
71+ puts lipo_log unless File . exist? ( tmp_lipoed_binary_path )
72+ FileUtils . mv tmp_lipoed_binary_path , "#{ device_framwork_path } .dSYM/Contents/Resources/DWARF/#{ module_name } " , :force => true
73+ end
74+ # move
7175 FileUtils . mv device_dsym , output_path , :force => true
7276 end
7377
You can’t perform that action at this time.
0 commit comments