【发布时间】:2011-03-02 17:54:51
【问题描述】:
我正在编译一个旨在分发的 iPhone 应用程序。这是我的第一个应用程序,所以我按照“iPhone 配置文件”的说明进行操作。不幸的是,它失败了:
CodeSign build/*_*_.app
cd "/Users/videojuegos/Documents/*_*_"
setenv IGNORE_CODESIGN_ALLOCATE_RADAR_7181968 /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/usr/bin/codesign -f -s "iPhone Distribution: ******" "--resource-rules=/Users/videojuegos/Documents/*_*_/build/*_*_.app/ResourceRules.plist" --entitlements "/Users/videojuegos/Documents/*_*_/build/Unity-iPhone.build/Distribution-iphoneos/Unity-iPhone.build/*_*_.xcent" "/Users/videojuegos/Documents/*_*_/build/*_*_.app"
/Users/videojuegos/Documents/*_*_/build/*_*_.app: The operation was cancelled by the user.
Command /usr/bin/codesign failed with exit code 1
我认为 Keychain 不允许 Codesign 工作,但据我所知并非如此。
我还尝试从终端运行这些命令,但失败并显示以下消息:
Users/videojuegos/Documents/*_*_/build/Unity-iPhone.build/Distribution-iphoneos/Unity-iPhone.build/*_*_.xcent: cannot read entitlement data
我已经从头开始进行了 3 次 xcode 设置。谷歌了它。没有结果。我不知道还有什么可以尝试的。有什么建议吗?
【问题讨论】:
-
我猜这与
*_*_在名称和目录结构中有关。你为什么要这样命名?您是在尝试使用通配符还是实际上是这样命名的?我以前从未从 XCode 获得过该输出,也不知道为什么要在终端中构建它/代码签名,而不是让 XCode 构建/编码分布式包。 -
抱歉,我刚刚将我的应用名称更改为“__”,因为我工作的公司声明我无法提供未发布应用的名称:/ 抱歉混乱。
-
如果是这样,您可能需要仔细检查您粘贴的输出,因为我认为您错过了一个位置。你也可以在这里试试:stackoverflow.com/questions/1383981/…
-
这个问题你解决了吗?将用户添加到我的配置文件并重新安装后,我才突然出现这种情况。