lib/cocoapods-util/command/xcframework/xcframework.rb in cocoapods-util-0.0.16 vs lib/cocoapods-util/command/xcframework/xcframework.rb in cocoapods-util-0.2.0
- old
+ new
@@ -13,20 +13,17 @@
CLAide::Argument.new('FRAMEWORK_PATH', true)
]
def self.options
[
- ['--force', '覆盖已经存在的文件'],
- ['--create-swiftinterface', '有编译swift文件的framework,如果不包含swiftinterface则无法生成xcframework。
- 设置该参数会生成一个swiftinterface文件解决create失败的问题。']
+ ['--force', '覆盖已经存在的文件']
]
end
def initialize(argv)
@file_path = argv.shift_argument
@force = argv.flag?('force')
- @create_swiftinterface = argv.flag?('create-swiftinterface')
super
end
def validate!
super
@@ -53,11 +50,10 @@
end
end
builder = XCFrameworkBuilder.new(
framework_name,
- source_dir,
- @create_swiftinterface
+ source_dir
)
builder.build_static_xcframework
end
end
end
\ No newline at end of file