上传TestFlight应用遇CFBundleVersion格式报错,求排查解决
上传TestFlight时CFBundleVersion格式错误导致上传失败的原因排查
报错信息
此 bundle 无效。Info.plist 文件中键 CFBundleVersion 的值 [2-15] 必须是最多由三个非负整数组成的、以句点分隔的列表。请查看更多...
问题背景
我将应用上传至App Store并通过TestFlight测试,上传完成后收到上述报错。我的主应用Info.plist中没有CFBundleVersion字段,该字段仅在Target Properties界面可见。我检查了所有通过SPM或Carthage引入的第三方依赖包的Info.plist,它们的CFBundleVersion均为<key>CFBundleVersion</key><string>1</string>的合规格式。
我尝试过以下操作,但均未解决问题:
- 修改Target Properties中的
CFBundleVersion值为单个数字 - 在主Info.plist中手动添加
CFBundleVersion及其他CFBundle*相关字段
相关截图


主应用Info.plist内容
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>UIApplicationSceneManifest</key> <dict> <key>UIApplicationSupportsMultipleScenes</key> <false/> <key>UISceneConfigurations</key> <dict> <key>UIWindowSceneSessionRoleApplication</key> <array> <dict> <key>UISceneConfigurationName</key> <string>Default Configuration</string> <key>UISceneDelegateClassName</key> <string>$(PRODUCT_MODULE_NAME).SceneDelegate</string> </dict> </array> </dict> </dict> <key>UIViewControllerBasedStatusBarAppearance</key> <false/> </dict> </plist>
内容的提问来源于stack exchange,提问作者asclepix
相关产品推荐
相关产品推荐

