代码符号异常
我正在尝试将我的 iPhone 应用程序上传到应用程序商店,并且我遵循了开发人员程序页面中的所有步骤,无论我进行什么更改,我总是得到相同的异常,即“命令 /usr/bin/codesign 失败退出代码 1”,我正在 xcode 4.1 上开发,构建日志如下:
CodeSign build/Distribution-iphoneos/xxxx.app
cd /Users/yyyy/Documents/xxxx
PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
setenv _CODESIGN_ALLOCATE_ /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
/usr/bin/codesign -f -s "iPhone Distribution: xxxx LLC" --resource- rules=/Users/yyyy/Documents/xxxx/build/Distribution-iphoneos/xxxx.app/ResourceRules.plist -- entitlements /Users/booksprice/Documents/xxxx/build/xxxx.build/Distribution-iphoneos/xxxx.build/xxxx.xcent /Users/yyyy/Documents/xxxx/build/Distribution-iphoneos/xxxx.app
/Users/yyyy/Documents/xxxx/build/Distribution-iphoneos/xxxx.app: The operation was cancelled by the user.
Command /usr/bin/codesign failed with exit code 1
I'm trying to upload my iphone application to app store and I followed all the steps that developer program page has in it, and no matter what I change I always get the same exception which is "Command /usr/bin/codesign failed with exit code 1", I'm developing on xcode 4.1, the build log is the next bellow:
CodeSign build/Distribution-iphoneos/xxxx.app
cd /Users/yyyy/Documents/xxxx
PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
setenv _CODESIGN_ALLOCATE_ /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
/usr/bin/codesign -f -s "iPhone Distribution: xxxx LLC" --resource- rules=/Users/yyyy/Documents/xxxx/build/Distribution-iphoneos/xxxx.app/ResourceRules.plist -- entitlements /Users/booksprice/Documents/xxxx/build/xxxx.build/Distribution-iphoneos/xxxx.build/xxxx.xcent /Users/yyyy/Documents/xxxx/build/Distribution-iphoneos/xxxx.app
/Users/yyyy/Documents/xxxx/build/Distribution-iphoneos/xxxx.app: The operation was cancelled by the user.
Command /usr/bin/codesign failed with exit code 1
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否看过这个问题:codesign“操作已被取消用户”?听起来重启 Mac 并解锁钥匙串会有所帮助。
Have you looked at this SO question: codesign "The operation was cancelled by the user" ? Sounds like restarting your Mac and unlocking your keychain helps.
您可以在 Xcode 4 上进行开发,但应该使用 Xcode 3.2.5 提交应用程序。
You can develop on Xcode 4, but you should be submitting your application with Xcode 3.2.5.