xcode 4.2 ios5 codesign失败,退出代码为1
我在谷歌搜索了一个适合我的解决方案......我尝试了很多不同的建议......但似乎没有任何效果。
I've searched all over the google for a solution which works for me... I've tried SO many different suggestions.. but nothing seems to be working.
在我尝试运行项目时使用ios5的xcode 4.2中,我收到以下错误
In xcode 4.2 using ios5 when I try to run the project, I get the following error
CodeSign /Users/matt/Library/Developer/Xcode/DerivedData/myapp-apjchwtbrxazuighfwhrzxchpcfk/Build/Products/Debug-iphoneos/myapp.app
cd /Users/matt/Desktop/myapp_v1_1
setenv CODESIGN_ALLOCATE /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/codesign_allocate
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/usr/bin/codesign --force --sign "iPhone Developer: Richard Sawyer (JCC5D2QGAM)" --resource-rules=/Users/matt/Library/Developer/Xcode/DerivedData/myapp-apjchwtbrxazuighfwhrzxchpcfk/Build/Products/Debug-iphoneos/myapp.app/ResourceRules.plist --entitlements /Users/matt/Library/Developer/Xcode/DerivedData/myapp-apjchwtbrxazuighfwhrzxchpcfk/Build/Intermediates/myapp.build/Debug-iphoneos/myapp.build/myapp.xcent /Users/matt/Library/Developer/Xcode/DerivedData/myapp-apjchwtbrxazuighfwhrzxchpcfk/Build/Products/Debug-iphoneos/myapp.app
/Users/matt/Library/Developer/Xcode/DerivedData/myapp-apjchwtbrxazuighfwhrzxchpcfk/Build/Products/Debug-iphoneos/myapp.app: object file format unrecognized, invalid, or unsuitable
Command /usr/bin/codesign failed with exit code 1
我试过了
- 重新安装xcode
- 删除DerivedData文件夹
- 添加资源位置文件(某处?!)
- 检查重复的info.plist文件
- 创建一个symm(?)链接到代码签名文件夹
- 其他随机小位和bobs
- reinstalling xcode
- deleting the DerivedData folder
- adding resource location files (somewhere?!)
- checking for duplicate info.plist files
- creating a symm (?) Link to the code sign folder
- other random little bits and bobs
似乎什么都没有用!我认为我没有改变任何东西,因为这不起作用。我正在我的iPhone 4S上测试,然后在iPhone 3G上尝试(操作系统3.1.2) - 我实际上更改了设置以添加armv6,但是试图将其更改为无效。
It seems nothing is working! I don't think I changed anything for this not to work. I was testing on my iPhone 4S, then tried on an iPhone 3G (os 3.1.2) - I actually changed the settings to add armv6, but have tried to change this back with no avail.
我不知道我现在能做什么?!
I'm not sure what I can do now?!
感谢您的帮助....任何事情都可以!
Thanks for any help.... anything at all!
我的问题原来是构建选项中的错误设置
。
我已输入 armv6
和 armv7
作为设置在那里。我将这些更改回正常
并且构建正常。
I had entered armv6
and armv7
as settings in there. I changed these back to normal
and it built fine.