Swift 更改特定目标快车道的版本和内部版本号
我正在尝试将Fastlane实现到一个包含30多个应用程序的Xcode项目中 此时此刻,我被为“AppStore”构建应用程序的通道卡住了,因为它必须更改特定目标的版本和构建编号。我的车道代码为:Swift 更改特定目标快车道的版本和内部版本号,swift,fastlane,fastlane-gym,Swift,Fastlane,Fastlane Gym,我正在尝试将Fastlane实现到一个包含30多个应用程序的Xcode项目中 此时此刻,我被为“AppStore”构建应用程序的通道卡住了,因为它必须更改特定目标的版本和构建编号。我的车道代码为: desc "Archives and creates the app for the AppStore" lane :build_appstore do |options| scheme = options[:scheme] output_directory = o
desc "Archives and creates the app for the AppStore"
lane :build_appstore do |options|
scheme = options[:scheme]
output_directory = options[:output_directory]
configuration = options[:configuration]
export_method = options[:export_method]
bundle_id = options[:bundle_id]
version = options[:version]
build = options[:build]
# Used for increment_version_number. Does it work?
ENV["APP_IDENTIFIER"] = options[:bundle_id]
increment_version_number(
version_number: version
)
increment_build_number(
build_number: build
)
gym(
scheme: scheme,
output_directory: output_directory,
configuration: configuration,
export_method: export_method
)
end
lanes可以工作,但当我查看项目时,我看到所有目标都更改了版本和构建号,这有点不方便
有什么想法吗