构建设备时出错:命令 /usr/bin/codesign 失败,退出代码 1

发布于 2024-12-10 15:05:33 字数 1199 浏览 0 评论 0原文

我在为设备构建 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文