3

我有一个刚刚发生的错误。我想是在我更改了一些构建设置的时候。我希望我的应用程序可以同时使用 armv6 和 armv7。但现在我得到这个错误说Command /usr/bin/codesign failed with exit code 1and i386: 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?

4

1 回答 1

3

该错误看起来像是您以某种方式向Other Code Signing Flags构建设置添加了一些不需要的内容(默认情况下为空)。您可能只需要更改架构构建设置。

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

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

于 2012-01-15T15:16:15.820 回答