lib/cocoapods-framework/command/framework.rb in cocoapods-xcframework-0.1.0 vs lib/cocoapods-framework/command/framework.rb in cocoapods-xcframework-0.1.1

- old
+ new

@@ -29,11 +29,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'] + ['--use-modular-headers', 'pakcage uses modular headers during packaging'], + ['--no-static-library', 'package not use static library'] ].concat super end def initialize(argv) @name = argv.shift_argument @@ -42,9 +43,11 @@ subspecs = argv.option('subspecs') @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) + config.static_library_enable = @use_static_library super end def validate! super