Skip to content

Commit d5c0101

Browse files
committed
lipo the dsym of simulator
1 parent 5dc20e3 commit d5c0101

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/cocoapods-binary/rome/build_framework.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)