【问题标题】:upload new build to same version using fastlane?使用 fastlane 将新版本上传到同一版本?
【发布时间】:2021-11-13 22:47:36
【问题描述】:

我有一个现有的应用程序并想使用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,但仍然遇到相同的错误!

【问题讨论】:

    标签: ios xcode react-native fastlane


    【解决方案1】:

    Apple connect 不会接受具有相同版本号的新版本,但您可以让 fastlane 处理它以确保您不会错过任何东西。使用类似的东西:

    ...
    increment_version_number(
      version_number: "1.0.15" # Set a specific version number
    )
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-03-23
      • 2019-10-24
      • 2016-08-08
      • 1970-01-01
      • 2013-06-23
      • 2010-12-13
      • 1970-01-01
      • 2021-12-17
      相关资源
      最近更新 更多