@@ -32,41 +32,41 @@ def build_for_iosish_platform(sandbox,
3232 # paths
3333 root_name = target . pod_name
3434 module_name = target . product_module_name
35- device_framwork_path = "#{ build_dir } /#{ CONFIGURATION } -#{ device } /#{ root_name } /#{ module_name } .framework"
36- simulator_framwork_path = "#{ build_dir } /#{ CONFIGURATION } -#{ simulator } /#{ root_name } /#{ module_name } .framework"
35+ device_framework_path = "#{ build_dir } /#{ CONFIGURATION } -#{ device } /#{ root_name } /#{ module_name } .framework"
36+ simulator_framework_path = "#{ build_dir } /#{ CONFIGURATION } -#{ simulator } /#{ root_name } /#{ module_name } .framework"
3737
38- device_binary = device_framwork_path + "/#{ module_name } "
39- simulator_binary = simulator_framwork_path + "/#{ module_name } "
38+ device_binary = device_framework_path + "/#{ module_name } "
39+ simulator_binary = simulator_framework_path + "/#{ module_name } "
4040 return unless File . file? ( device_binary ) && File . file? ( simulator_binary )
4141
4242 # the device_lib path is the final output file path
43- # combine the bianries
43+ # combine the binaries
4444 tmp_lipoed_binary_path = "#{ build_dir } /#{ root_name } "
4545 lipo_log = `lipo -create -output #{ tmp_lipoed_binary_path } #{ device_binary } #{ simulator_binary } `
4646 puts lipo_log unless File . exist? ( tmp_lipoed_binary_path )
4747 FileUtils . mv tmp_lipoed_binary_path , device_binary , :force => true
4848
4949 # collect the swiftmodule file for various archs.
50- device_swiftmodule_path = device_framwork_path + "/Modules/#{ module_name } .swiftmodule"
51- simulator_swiftmodule_path = simulator_framwork_path + "/Modules/#{ module_name } .swiftmodule"
50+ device_swiftmodule_path = device_framework_path + "/Modules/#{ module_name } .swiftmodule"
51+ simulator_swiftmodule_path = simulator_framework_path + "/Modules/#{ module_name } .swiftmodule"
5252 if File . exist? ( device_swiftmodule_path )
5353 FileUtils . cp_r simulator_swiftmodule_path + "/." , device_swiftmodule_path
5454 end
5555
5656 # handle the dSYM files
57- device_dsym = "#{ device_framwork_path } .dSYM"
57+ device_dsym = "#{ device_framework_path } .dSYM"
5858 if File . exist? device_dsym
5959 # lipo the simulator dsym
6060 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 } `
61+ lipo_log = `lipo -create -output #{ tmp_lipoed_binary_path } #{ device_dsym } /Contents/Resources/DWARF/#{ module_name } #{ simulator_framework_path } .dSYM/Contents/Resources/DWARF/#{ module_name } `
6262 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
63+ FileUtils . mv tmp_lipoed_binary_path , "#{ device_framework_path } .dSYM/Contents/Resources/DWARF/#{ module_name } " , :force => true
6464 FileUtils . mv device_dsym , output_path , :force => true
6565 end
6666
6767 # output
6868 output_path . mkpath unless output_path . exist?
69- FileUtils . mv device_framwork_path , output_path , :force => true
69+ FileUtils . mv device_framework_path , output_path , :force => true
7070
7171end
7272
0 commit comments