lib/cocoapods-xcframework/command/xcframework.rb in cocoapods-bb-xcframework-0.2.5 vs lib/cocoapods-xcframework/command/xcframework.rb in cocoapods-bb-xcframework-0.2.6
- old
+ new
@@ -33,11 +33,12 @@
['--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-support-maccatalyst', 'package support generate MacCatalyst'] # 是否支持MacCatalyst方式支持iOS应用在mac平台运行库生成
+ ['--no-support-maccatalyst', 'package support generate MacCatalyst'], # 是否支持MacCatalyst方式支持iOS应用在mac平台运行库生成
+ ['--no-support-dynamic', 'package support Mach-O dynamically linked shared library'] # 是否支持动态库生成
].concat super
end
def initialize(argv)
@name = argv.shift_argument
@@ -50,20 +51,21 @@
@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)
+ @support_dynamic = argv.flag?('support-dynamic',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, @enable_bitcode, @symbols, @support_maccatalyst)
+ frameworker = Frameworker.new(@name, @source, @spec_sources, @subspecs, @configuration, @force, @use_modular_headers, @enable_bitcode, @symbols, @support_maccatalyst, @support_dynamic)
frameworker.run
end
end
end
end