@@ -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