lib/cocoapods-xcframework/command/xcframework.rb in cocoapods-bb-xcframework-0.1.0 vs lib/cocoapods-xcframework/command/xcframework.rb in cocoapods-bb-xcframework-0.2.0

- old
+ new

@@ -32,11 +32,12 @@ ['--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'], ['--enable-bitcode', 'package enable bitcode'], - ['--no-symbols', 'package not use symbols'] # 符号表 + ['--no-symbols', 'package not use symbols'], # 符号表 + ['--no-support-maccatalyst', 'package support generate MacCatalyst'] # 是否支持MacCatalyst方式支持iOS应用在mac平台运行库生成 ].concat super end def initialize(argv) @name = argv.shift_argument @@ -48,20 +49,21 @@ @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) @symbols = argv.flag?('symbols',true) + @support_maccatalyst = argv.flag?('support-maccatalyst',true) 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, @enable_bitcode, @symbols) + frameworker = Frameworker.new(@name, @source, @spec_sources, @subspecs, @configuration, @force, @use_modular_headers, @enable_bitcode, @symbols, @support_maccatalyst) frameworker.run end end end end