Skip to content

Commit 87b9bb8

Browse files
committed
fix for merge
1 parent c9810c1 commit 87b9bb8

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

lib/cocoapods-binary/Prebuild.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,6 @@ def install_when_cache_hit!
6767
# Build the needed framework files
6868
def prebuild_frameworks!
6969

70-
# check
71-
# give a early warning, instead of after compiling all the pods
72-
Prebuild.check_one_pod_should_have_only_one_target(self.pod_targets)
73-
7470
# build options
7571
sandbox_path = sandbox.root
7672
existed_framework_folder = sandbox.generate_framework_path

lib/cocoapods-binary/rome/build_framework.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ class Prebuild
146146
#
147147
def self.build(sandbox_root_path, target, output_path, bitcode_enabled = false, custom_build_options=[], custom_build_options_simulator=[])
148148

149-
return unless not target == nil
149+
return if target.nil?
150150

151151
sandbox_root = Pathname(sandbox_root_path)
152152
sandbox = Pod::Sandbox.new(sandbox_root)
@@ -157,7 +157,7 @@ def self.build(sandbox_root_path, target, output_path, bitcode_enabled = false,
157157
when :ios then build_for_iosish_platform(sandbox, build_dir, output_path, target, 'iphoneos', 'iphonesimulator', bitcode_enabled, custom_build_options, custom_build_options_simulator)
158158
when :osx then xcodebuild(sandbox, target.label, 'macosx', nil, custom_build_options)
159159
# when :tvos then build_for_iosish_platform(sandbox, build_dir, target, 'appletvos', 'appletvsimulator')
160-
when :watchos then build_for_iosish_platform(sandbox, build_dir, output_path, target, 'watchos', 'watchsimulator', true, "i386")
160+
when :watchos then build_for_iosish_platform(sandbox, build_dir, output_path, target, 'watchos', 'watchsimulator', true, custom_build_options, custom_build_options_simulator)
161161
else raise "Unsupported platform for '#{target.name}': '#{target.platform.name}'" end
162162

163163
raise Pod::Informative, 'The build directory was not found in the expected location.' unless build_dir.directory?

0 commit comments

Comments
 (0)