lib/cocoapods-packager/builder.rb in ty-cocoapods-packager-1.5.2 vs lib/cocoapods-packager/builder.rb in ty-cocoapods-packager-1.5.3

- old
+ new

@@ -172,10 +172,15 @@ if platform.name == :ios options = ios_build_options end + if platform.name == :watchos + options = watchos_build_options + UI.puts "add watchos options: #{options}" + end + xcodebuild(defines, options) if @mangle return build_with_mangling(platform, options) end @@ -287,9 +292,13 @@ linker_flags.reject { |e| e == "-l#{@spec.name}" || e == '-lPods-packager' } end def ios_build_options "ARCHS=\'x86_64 i386 arm64 armv7 armv7s\' OTHER_CFLAGS=\'-fembed-bitcode -Qunused-arguments\'" + end + + def watchos_build_options + "ARCHS=\'i386 arm64_32 armv7k\' OTHER_CFLAGS=\'-fembed-bitcode -Qunused-arguments\'" end def xcodebuild(defines = '', args = '', build_dir = 'build', target = 'Pods-packager', project_root = @static_sandbox_root, config = @config) if defined?(Pod::DONT_CODESIGN) args = "#{args} CODE_SIGN_IDENTITY=\"\" CODE_SIGNING_REQUIRED=NO"