@@ -32,41 +32,41 @@ def build_for_iosish_platform(sandbox,
32
32
# paths
33
33
root_name = target . pod_name
34
34
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"
37
37
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 } "
40
40
return unless File . file? ( device_binary ) && File . file? ( simulator_binary )
41
41
42
42
# the device_lib path is the final output file path
43
- # combine the bianries
43
+ # combine the binaries
44
44
tmp_lipoed_binary_path = "#{ build_dir } /#{ root_name } "
45
45
lipo_log = `lipo -create -output #{ tmp_lipoed_binary_path } #{ device_binary } #{ simulator_binary } `
46
46
puts lipo_log unless File . exist? ( tmp_lipoed_binary_path )
47
47
FileUtils . mv tmp_lipoed_binary_path , device_binary , :force => true
48
48
49
49
# 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"
52
52
if File . exist? ( device_swiftmodule_path )
53
53
FileUtils . cp_r simulator_swiftmodule_path + "/." , device_swiftmodule_path
54
54
end
55
55
56
56
# handle the dSYM files
57
- device_dsym = "#{ device_framwork_path } .dSYM"
57
+ device_dsym = "#{ device_framework_path } .dSYM"
58
58
if File . exist? device_dsym
59
59
# lipo the simulator dsym
60
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 } `
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 } `
62
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
63
+ FileUtils . mv tmp_lipoed_binary_path , "#{ device_framework_path } .dSYM/Contents/Resources/DWARF/#{ module_name } " , :force => true
64
64
FileUtils . mv device_dsym , output_path , :force => true
65
65
end
66
66
67
67
# output
68
68
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
70
70
71
71
end
72
72
0 commit comments