@@ -146,7 +146,7 @@ class Prebuild
146
146
#
147
147
def self . build ( sandbox_root_path , target , output_path , bitcode_enabled = false , custom_build_options = [ ] , custom_build_options_simulator = [ ] )
148
148
149
- return unless not target == nil
149
+ return if target . nil?
150
150
151
151
sandbox_root = Pathname ( sandbox_root_path )
152
152
sandbox = Pod ::Sandbox . new ( sandbox_root )
@@ -157,7 +157,7 @@ def self.build(sandbox_root_path, target, output_path, bitcode_enabled = false,
157
157
when :ios then build_for_iosish_platform ( sandbox , build_dir , output_path , target , 'iphoneos' , 'iphonesimulator' , bitcode_enabled , custom_build_options , custom_build_options_simulator )
158
158
when :osx then xcodebuild ( sandbox , target . label , 'macosx' , nil , custom_build_options )
159
159
# 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 )
161
161
else raise "Unsupported platform for '#{ target . name } ': '#{ target . platform . name } '" end
162
162
163
163
raise Pod ::Informative , 'The build directory was not found in the expected location.' unless build_dir . directory?
0 commit comments