Skip to content

Commit c1a2d53

Browse files
committed
fix watchos simulator bianry missing
1 parent bfe047c commit c1a2d53

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lib/cocoapods-binary/rome/build_framework.rb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,15 @@ def build_for_iosish_platform(sandbox,
2626
target_label = target.label # name with platform if it's used in multiple platforms
2727
Pod::UI.puts "Prebuilding #{target_label}..."
2828

29-
other_options = []
30-
if bitcode_enabled
31-
other_options += ['BITCODE_GENERATION_MODE=bitcode']
32-
end
29+
other_options = []
30+
# bitcode enabled
31+
other_options += ['BITCODE_GENERATION_MODE=bitcode'] if bitcode_enabled
32+
# make less arch to iphone simulator for faster build
33+
custom_build_options_simulator += ['ARCHS=x86_64', 'ONLY_ACTIVE_ARCH=NO'] if simulator == 'iphonesimulator'
3334

3435
is_succeed, _ = xcodebuild(sandbox, target_label, device, deployment_target, other_options + custom_build_options)
3536
exit 1 unless is_succeed
36-
is_succeed, _ = xcodebuild(sandbox, target_label, simulator, deployment_target, other_options + ['ARCHS=x86_64', 'ONLY_ACTIVE_ARCH=NO'] + custom_build_options_simulator)
37+
is_succeed, _ = xcodebuild(sandbox, target_label, simulator, deployment_target, other_options + custom_build_options_simulator)
3738
exit 1 unless is_succeed
3839

3940
# paths

0 commit comments

Comments
 (0)