英文:
TestFlight upload requires both CFBundleVersion and CFBundleShortVersionString to be incremented?
问题
After launching v1.0 of an app I'm now looking at releasing the next version to TestFlight. However I'm receiving the following error but for macOS only:
This bundle is invalid. The value for key CFBundleVersion [2] in the Info.plist file must contain a higher version than that of the previously uploaded version [39]
This would make sense if I was trying to upload another 1.0 build, but I've incremented the CFBundleShortVersionString
to 1.1. I assumed that updating this number would mean the build number resets to 1? (We're using Fastlane for automation which assumes the same).
Another thing that confuses me is that the iOS version that went from 1.0 (30) to 1.1 (1) was accepted.
<key>CFBundleShortVersionString</key>
<string>1.1</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>2</string>
Our previous was:
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>39</string>
Do I really need to start my new version as 1.1 (40)?
英文:
After launching v1.0 of an app I'm now looking at releasing the next version to TestFlight. However I'm receiving the following error but for macOS only:
This bundle is invalid. The value for key CFBundleVersion [2] in the Info.plist file must contain a higher version than that of the previously uploaded version [39]
This would make sense if I was trying to upload another 1.0 build, but I've incremented the CFBundleShortVersionString
to 1.1. I assumed that updating this number would mean the build number resets to 1? (We're using Fastlane for automation which assumes the same).
Another thing that confuses me is that the iOS version that went from 1.0 (30) to 1.1 (1) was accepted.
<key>CFBundleShortVersionString</key>
<string>1.1</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>2</string>
Our previous was:
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CFBundleVersion</key>
<string>39</string>
Do I really need to start my new version as 1.1 (40)?
答案1
得分: 0
"CFBundleVersion" 在 macOS 必须在所有版本中是唯一的,所以 AppStore 不会接受以下版本号:
1.0 (39) > 1.1 (1)
- 虽然 "CFBundleShortString" 已经增加,但 "CFBundleVersion" 也必须增加。
而在 iOS 中,构建号只需要在当前版本中是唯一的。
详细信息可参考:https://developer.apple.com/library/archive/technotes/tn2420/_index.html
英文:
OK I missed a crucial bit of information in the docs. For macOS the CFBundleVersion
must be unique across all versions. So the AppStore won't accept the following:
1.0 (39) > 1.1 (1)
- While the CFBundleShortString
has been incremented, the CFBundleVersion
must also be incremented.
iOS was accepted as the build number only needs to be unique for the current version.
https://developer.apple.com/library/archive/technotes/tn2420/_index.html
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论