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

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

问题描述:

我刚发生一个错误.我认为是在更改某些构建设置时.我希望我的应用程序可以同时使用armv6和armv7.但是现在我得到了这个错误,说明命令/usr/bin/codesign失败,退出代码为1 i386:没有这样的文件或目录.这是整个错误日志:

I have an error that just occurred. I think it was when I changed some of my build settings. I wanted my app to work with both armv6 and armv7. But now I get this error saying Command /usr/bin/codesign failed with exit code 1 and i386: No such file or directory. Here is the entire error log:

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一起使用?

How can I solve this problem and still have my app work with both armv6 and armv7?

该错误似乎是您已经以某种方式将东西添加到了 Other Code Signing Flags (其他代码签名标志)构建设置中(该属性为空)默认).您可能只需要更改建筑构建设置.

That error looks like you have added things to the Other Code Signing Flags build setting somehow which should not be needed (it is empty by default). You should probably only need to change the Architectures build setting.

请注意,iPhone 3GS和更高版本,iPod Touch 2和更高版本以及所有iPad都具有armv7 ISA.因此,仅当您要支持iPhone 3G或更低版本的iPod Touche设备时,才需要armv6.

Note that iPhone 3GS and higher, iPod Touch 2 and higher and all iPads have armv7 ISA. So armv6 is only needed if you want to support iPhone 3G or lower and old iPod Touche devices.

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