构建失败错误

发布于 2024-12-16 02:50:41 字数 1347 浏览 0 评论 0原文

我对此错误感到困惑,因为我从 xcode 3.2 安装了 xcode 4.2 并切换回 xcode 3.2 从那时起,我无法为任何配置的任何项目构建设备。

显示的错误是:

CodeSign build/Debug-iphoneos/MyProject.app cd “/用户/macadmin/文档/iPhoneProjectDocs/Madhup/测试/测试 开发/MyProject”setenv 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 开发人员:Madhup (MW9495NA8W)" “--resource-rules=/Users/macadmin/Documents/iPhoneProjectDocs/Madhup/Test/Test 开发/MyProject/build/Debug-iphoneos/MyProject.app/ResourceRules.plist” --entitlements "/Users/macadmin/Documents/iPhoneProjectDocs/Madhup/Test/Test 开发/MyProject/build/MyProject.build/Debug-iphoneos/MyProject.build/MyProject.xcent” “/用户/macadmin/文档/iPhoneProjectDocs/Madhup/测试/测试 开发/MyProject/build/Debug-iphoneos/MyProject.app"

/Users/macadmin/Documents/iPhoneProjectDocs/Madhup/测试/测试 开发/MyProject/build/Debug-iphoneos/MyProject.app:对象 文件格式无效或不合适 命令 /usr/bin/codesign 失败 退出代码为 1

我试图解决的问题是:

  • 完全删除所有配置文件和证书并重新安装它们。
  • 更改配置(调试到其他配置)
  • 完全卸载并重新安装 xcode

此外,如果我尝试从具有相同配置文件、开发人员证书和相同构建配置的其他系统构建我的项目,我不会遇到任何问题。

请帮助我,因为我很沮丧并正在考虑重新安装操作系统:(

I am baffled about this error since I installed xcode 4.2 from xcode 3.2 and switched back to xcode 3.2 Since then I am not able to build for device for any of my projects for any configurations.

The error shown is:

CodeSign build/Debug-iphoneos/MyProject.app cd
"/Users/macadmin/Documents/iPhoneProjectDocs/Madhup/Test/Test
Development/MyProject" setenv 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 Developer: Madhup (MW9495NA8W)"
"--resource-rules=/Users/macadmin/Documents/iPhoneProjectDocs/Madhup/Test/Test
Development/MyProject/build/Debug-iphoneos/MyProject.app/ResourceRules.plist"
--entitlements "/Users/macadmin/Documents/iPhoneProjectDocs/Madhup/Test/Test
Development/MyProject/build/MyProject.build/Debug-iphoneos/MyProject.build/MyProject.xcent"
"/Users/macadmin/Documents/iPhoneProjectDocs/Madhup/Test/Test
Development/MyProject/build/Debug-iphoneos/MyProject.app"

/Users/macadmin/Documents/iPhoneProjectDocs/Madhup/Test/Test
Development/MyProject/build/Debug-iphoneos/MyProject.app: object
file format invalid or unsuitable Command /usr/bin/codesign failed
with exit code 1

The things I have tried to get over this are:

  • Completely removed all provisioning profiles and certificates and re-install them.
  • Change configurations (Debug to some other)
  • Completely uninstall and re-install xcode

Moreover if I try to build my project from some other systems with same provisioning profile, developer certificate and same build configuration I don't face any problem.

Please help me out as I am so frustrated and thinking of OS re-install :(

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

凉月流沐 2024-12-23 02:50:41

因此,为了澄清,您已经删除了 xcode...

sudo /Developer/Library/uninstall-devtools –mode=all

您是否还清理了构建(产品菜单 -> 清理)?我知道这听起来有点明显 - 但很多人忘记这样做!

So to clarify, you've removed xcode with...

sudo /Developer/Library/uninstall-devtools –mode=all

Have you also cleaned the build (Product menu -> Clean)? I know this sounds a bit of an obvious one - but lots of people forget to do it!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文