构建设备时出错:命令 /usr/bin/codesign 失败,退出代码 1
我在为设备构建 iPad 时遇到此错误。
“命令 /usr/bin/codesign 失败,退出代码 1”
我搜索了我的博客和论坛并按照步骤操作,但没有成功。现在,我从钥匙串中删除了所有证书和配置文件,并重新安装了最新的证书,但仍然存在同样的问题。之前我使用的是我的 iOS a/c,现在我正在使用我的第二个 iOS A/c 证书。虽然当我在另一个系统上安装新证书时,它工作正常,但在我的系统上产生了问题 请帮助..
有关错误的更多详细信息...
CodeSign build/Debug-iphoneos/base.app
cd /Users/xx/iPad_work/2011/October/my_test/base
setenv PATH "/Developer/ios_sdk_4.2.1/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/ios_sdk_4.2.1/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
setenv _CODESIGN_ALLOCATE_ /Developer/ios_sdk_4.2.1/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
/usr/bin/codesign -f -s "iPhone Developer: Six sigma (xxxxxxxx)" --resource-rules=/Users/xx/iPad_work/2011/October/my_test/base/build/Debug-iphoneos/base.app/ResourceRules.plist --entitlements /Users/xx/iPad_work/2011/October/my_test/base/build/base.build/Debug-iphoneos/base.build/base.xcent /Users/xx/iPad_work/2011/October/my_test/base/build/Debug-iphoneos/base.app
/Users/xx/iPad_work/2011/October/my_test/base/build/Debug-iphoneos/base.app: object file format invalid or unsuitable
Command /usr/bin/codesign failed with exit code 1
谢谢
I am getting this error when making iPad build for device.
"Command /usr/bin/codesign failed with exit code 1"
I searched my blogs and forums and followed steps but no success. Now I deleted all certificate and provisioning profile from keychain and reinstall the latest one but still the same issue. Previously I was using my iOS a/c and now i am using my second iOS A/c certificate. Although when i install the new certificate on another system, it works fine but on my system creating the problem
Please help..
More detail about error...
CodeSign build/Debug-iphoneos/base.app
cd /Users/xx/iPad_work/2011/October/my_test/base
setenv PATH "/Developer/ios_sdk_4.2.1/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/ios_sdk_4.2.1/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
setenv _CODESIGN_ALLOCATE_ /Developer/ios_sdk_4.2.1/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
/usr/bin/codesign -f -s "iPhone Developer: Six sigma (xxxxxxxx)" --resource-rules=/Users/xx/iPad_work/2011/October/my_test/base/build/Debug-iphoneos/base.app/ResourceRules.plist --entitlements /Users/xx/iPad_work/2011/October/my_test/base/build/base.build/Debug-iphoneos/base.build/base.xcent /Users/xx/iPad_work/2011/October/my_test/base/build/Debug-iphoneos/base.app
/Users/xx/iPad_work/2011/October/my_test/base/build/Debug-iphoneos/base.app: object file format invalid or unsuitable
Command /usr/bin/codesign failed with exit code 1
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论