You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

上传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*相关字段

相关截图

Target Properties中的版本配置
项目配置界面

主应用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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.28 19:23:16