构建失败错误
我对此错误感到困惑,因为我从 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
因此,为了澄清,您已经删除了 xcode...
您是否还清理了构建(产品菜单 -> 清理)?我知道这听起来有点明显 - 但很多人忘记这样做!
So to clarify, you've removed xcode with...
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!