iphone - 当用户取消操作时如何修复 CodeSign? (而我没有)

标签 iphone ios xcode codesign

我正在编译一个旨在分发的 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/

相关文章:

ios - 预填充的 Realm 不会在第一次启动时被复制

xcode - 让 lldb 的工作目录为 XCode 的项目目录

objective-c - 我需要在 dealloc 中释放吗?

ios - 在 Show Segue、Xcode 6.1 中无法选择导航栏

iphone - 如何检测 "would like to use your current location"选择 Action ?

ios - 将 UIView 添加到 UITableViewCell 没有显示任何内容

ios - Google Analytics IOS SDK session 超时

ios - 自定义类不显示在属性检查器中

iphone - 如何使用 SBJSON iPhone 处理 JSON 响应?

iphone - 将自定义对象的 NSArray 转换为带索引的按字母顺序划分的 UITableView?