我正在编译一款旨在分发的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
我本以为钥匙串不允许Codesign工作,但据我所知这并非事实。
我也尝试在终端中运行这些命令,但它失败并显示以下消息:
Users/videojuegos/Documents/*_*_/build/Unity-iPhone.build/Distribution-iphoneos/Unity-iPhone.build/*_*_.xcent: cannot read entitlement data
我已经从零开始设置了三次xcode,搜索过但没有结果。我不知道还有什么其他尝试的方法。有什么建议吗?
*_*_
出现在名称和目录结构中有关。你为什么要这样命名?是想使用通配符还是实际上就是这样命名的?我以前从未在XCode中看到过这种输出,也不确定为什么你要在终端中进行构建/代码签名,而不是让XCode构建/代码签名分发包。 - iwasrobbed