我有一个现有的应用程序,想Fastlane
在添加一些配置后使用,我想将新版本发送到 testflight,
所以我使用这条车道
platform :ios do
private_lane :staging_build do
increment_build_number(xcodeproj: './ios/myapp.xcodeproj')
gym(scheme: 'myApp', workspace: './ios/myapp.xcworkspace')
end
desc 'Build & send to testflight'
lane :upload_to_testF do
staging_build
upload_to_testflight(username: '*****@gmail.com', app_identifier: 'com.comp.myapp')
commit_version_bump(message: 'bump build')
push_to_git_remote
end
end
所以运行后 fastlane ios send_to_testF
.ipa 文件生成和内部版本号递增
毕竟我得到了这个错误
ERROR ITMS-90186: "Invalid Pre-Release Train. The train version '1.0.14' is closed for new build submissions"
ERROR ITMS-90062: "This bundle is invalid. The value for key CFBundleShortVersionString [1.0.14] in the Info.plist file must contain a higher version than that of the previously approved version [1.0.14]. Please find more information about CFBundleShortVersionString at https://developer.apple.com/documentation/bundleresources/information_property_list/cfbundleshortversionstring"
我在应用商店有这个版本
这在 Xcode 中也是一样的
那么他们为什么要求增加它!即使我只是尝试在代码和应用商店中将其增加到 1.0.15,但仍然出现相同的错误!
Apple Connect 不会接受具有相同版本号的新版本,但您可以让 fastlane 处理以确保您不会错过任何内容。使用类似的东西:
...
increment_version_number(
version_number: "1.0.15" # Set a specific version number
)
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句