lib/cocoapods-framework/command/framework.rb in cocoapods-xcframework-0.0.4 vs lib/cocoapods-framework/command/framework.rb in cocoapods-xcframework-0.0.5

- old
+ new

@@ -28,31 +28,33 @@ def self.options [ ['--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'] + ['--subspecs', 'Only include the given subspecs'], + ['--use-modular-headers', 'pakcage uses modular headers during packaging'] ].concat super end def initialize(argv) @name = argv.shift_argument @source = argv.shift_argument @spec_sources = argv.option('spec-sources', 'https://github.com/CocoaPods/Specs.git').split(',') 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) 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) + frameworker = Frameworker.new(@name, @source, @spec_sources, @subspecs, @configuration, @force, @use_modular_headers) frameworker.run end end end end