我正在编译一个旨在分发的 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。用谷歌搜索。没有结果。我不知道还能尝试什么。有什么建议吗?
最佳答案
您在项目build设置中是否有权利值。如果是则删除它并重试
关于iphone - 当用户取消操作时如何修复 CodeSign? (而我没有),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3024330/