命令/ usr / bin / codesign失败,退出代码为1:i386:没有这样的文件或目录

时间:2012-01-15 12:27:32

标签: objective-c cocoa-touch xcode4.2 code-signing-entitlements

我发生了一个错误。我想是在我更改了一些构建设置的时候。我希望我的应用程序可以同时使用armv6和armv7。但现在我收到此错误Command /usr/bin/codesign failed with exit code 1i386: No such file or directory。这是整个错误日志:

CodeSign /Users/Jacos/Library/Developer/Xcode/DerivedData/Kapareskolan-asnymemcjzpjdwbpftlqeknpdmsq/ArchiveIntermediates/Kapareskolan/InstallationBuildProductsLocation/Applications/Kapareskolan.app
cd "/Users/Jacos/Documents/Development/iOS/Official Apps/Kapareskolan 2.0"
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 Distribution: Gun  Lindgren" --resource-rules=/Users/Jacos/Library/Developer/Xcode/DerivedData/Kapareskolan-asnymemcjzpjdwbpftlqeknpdmsq/ArchiveIntermediates/Kapareskolan/InstallationBuildProductsLocation/Applications/Kapareskolan.app/ResourceRules.plist i386 armv6 armv7 --entitlements /Users/Jacos/Library/Developer/Xcode/DerivedData/Kapareskolan-asnymemcjzpjdwbpftlqeknpdmsq/ArchiveIntermediates/Kapareskolan/IntermediateBuildFilesPath/Kapareskolan.build/Release-iphoneos/Kapareskolan.build/Kapareskolan.xcent /Users/Jacos/Library/Developer/Xcode/DerivedData/Kapareskolan-asnymemcjzpjdwbpftlqeknpdmsq/ArchiveIntermediates/Kapareskolan/InstallationBuildProductsLocation/Applications/Kapareskolan.app

i386: No such file or directory
Command /usr/bin/codesign failed with exit code 1

如何解决这个问题,我的应用仍然可以同时使用armv6和armv7?

1 个答案:

答案 0 :(得分:2)

该错误看起来像您已经以某种方式向其他代码签名标志构建设置添加了一些不需要的内容(默认情况下它是空的)。您可能只需要更改体系结构构建设置。

请注意,iPhone 3GS及更高版本,iPod Touch 2及更高版本以及所有iPad都配备了armv7 ISA。因此,只有当您想要支持iPhone 3G或更低版本和旧款iPod Touche设备时才需要armv6。

http://en.wikipedia.org/wiki/List_of_iOS_devices