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

修改版本与Bundle Identifier后Xcode归档报错Archive Missing Bundle Identifier求助

问题概述

归档Xcode项目时触发以下错误:

Archive Missing Bundle Identifier
Domain: IDEArchivedApplicationErrorDomain
Code: 1
Failure Reason: Archive content at path /Users/solar/Library/Developer/Xcode/Archives/2023-12-27/Unity-iPhone 12-27-23, 9.04 PM.xcarchive/Products/Applications/merger game.app is missing a bundle identifer.
User Info: {
    DVTErrorCreationDateKey = "2023-12-28 02:04:15 +0000";
}

此前项目可正常归档,修改版本号与Bundle Identifier(已修改两个Info.plist文件)后归档失败,尝试过相关解决方案及检查预操作(无内容)均未解决。

解决步骤
  • 确认主Target的Bundle ID配置
    选中项目主Target(如Unity-iPhone),进入General标签页的Identity区域,确保Bundle Identifier填写正确,且与Info.plist中的值完全匹配,避免包含空格、特殊字符(注意当前app名称含空格,Bundle ID需使用规范格式如com.yourcompany.mergergame)。

  • 校验所有Info.plist的一致性
    检查项目中所有Info.plist文件(包括附属Target的配置文件),右键选择Open As > Source Code,确认CFBundleIdentifier字段的字符串值格式正确、无拼写错误,且所有文件中的该值完全一致。

  • 清理缓存并重新构建

    1. 执行Product > Clean Build Folder(快捷键Cmd+Shift+K)清理构建缓存
    2. 删除~/Library/Developer/Xcode/DerivedData下当前项目对应的文件夹
    3. 重启Xcode后重新尝试归档
  • 检查归档路径与权限
    删除旧归档文件,重新归档时选择无特殊字符的路径(避免文件名包含逗号、空格),同时确认当前用户对归档目录有读写权限。

  • 验证Unity导出配置(针对Unity-iPhone项目)
    若为Unity导出的Xcode项目,回到Unity编辑器:

    1. 进入Player Settings > iOS > Identification,确认Bundle Identifier与Xcode配置一致
    2. 重新导出Xcode项目并覆盖原文件,再尝试归档

内容的提问来源于stack exchange,提问作者Solar

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.07.03 09:17:45