lib/cocoapods-framework/command/framework.rb in cocoapods-xcframework-0.1.1 vs lib/cocoapods-framework/command/framework.rb in cocoapods-xcframework-0.2.0
- old
+ new
@@ -30,11 +30,12 @@
['--no-force', 'Overwrite existing files.'],
['--configuration', 'Build the specified configuration (e.g. Debug). Defaults to Release'],
['--spec-sources=private,https://github.com/CocoaPods/Specs.git', 'The sources to pull dependent pods from (defaults to https://github.com/CocoaPods/Specs.git)'],
['--subspecs', 'Only include the given subspecs'],
['--use-modular-headers', 'pakcage uses modular headers during packaging'],
- ['--no-static-library', 'package not use static library']
+ ['--no-static-library', 'package not use static library'],
+ ['--enalbe-bitcode', 'package enable bitcode']
].concat super
end
def initialize(argv)
@name = argv.shift_argument
@@ -44,20 +45,21 @@
@subspecs = subspecs.split(',') unless subspecs.nil?
@configuration = argv.option('configuration', 'Release')
@use_modular_headers = argv.option('use-modular-headers', true)
@force = argv.flag?('force', true)
@use_static_library = argv.flag?('static-library',true)
+ @enable_bitcode = argv.flag?('enable-bitcode',false)
config.static_library_enable = @use_static_library
super
end
def validate!
super
help! 'A Pod name is required.' unless @name
end
def run
- frameworker = Frameworker.new(@name, @source, @spec_sources, @subspecs, @configuration, @force, @use_modular_headers)
+ frameworker = Frameworker.new(@name, @source, @spec_sources, @subspecs, @configuration, @force, @use_modular_headers, @enable_bitcode)
frameworker.run
end
end
end
end