我对这个错误感到困惑,因为我从 xcode 3.2 安装了 xcode 4.2 并切换回 xcode 3.2从那时起我无法为任何配置的任何项目构建设备。
显示的错误是:
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 开发者: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:目标文件格式无效或不合适命令 /usr/bin/codesign 失败,退出代码为 1
我试图克服的事情是:
- 完全删除所有配置文件和证书并重新安装它们。
- 更改配置(调试到其他配置)
- 完全卸载并重新安装 xcode
此外,如果我尝试从其他具有相同配置文件、开发人员证书和相同构建配置的系统构建我的项目,我不会遇到任何问题。
请帮助我,因为我很沮丧并考虑重新安装操作系统:(