【发布时间】:2013-09-13 20:35:25
【问题描述】:
我已经阅读了很多主题,但在这里找不到类似我的问题的任何内容。我认为这是一个简单的解决方法,但我似乎无法找到答案。我正在使用 Xcode 4.1 Gold Master。
基本上,当我归档我的 Mac 应用程序时,它会经历所有正常流程。构建成功。但是,当我提交到应用商店时,我收到以下消息:
Invalid Code Signing Entitlements - Your application bundle's signature contains code
signing entitlements that are not supported on Mac OS X; this may happen if your Mac OS X
project was ported from iOS. Please check your Xcode project's code signing entitlements
configuration, and remove any unneeded entitlements.
Specifically, key "application-identifier" in "My App" is not supported.
我的应用不是从 iOS 移植过来的,而且我从未设置过权利。经过几个小时的挖掘,我发现代码签名阶段正在生成一个这种格式的 .xcent 文件:
<?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>application-identifier</key>
<string>My.App.Identifier</string>
<key>com.apple.application-identifier</key>
<string>My.App.Identifier</string>
</dict>
</plist>
第一个关键是导致问题的关键。当我删除它并通过命令行使用相同的 .xcent 文件强制退出应用程序时,应用程序就会通过。
我已经删除并重新安装了 xcode,看看是否有帮助......它没有。
我知道此文件创建与配置文件相关联。它似乎获得了正确的数据,但添加了现有的标签。我检查了项目和构建设置,根本没有代码签名权利。知道如何让 Xcode 停止生成此密钥吗?每次我想提交到应用商店时,我都不太喜欢这样做。
【问题讨论】:
标签: xcode xcode4 code-signing