2

当我在开发人员视图上运行我的代码时它可以工作但在 GM 种子上它给出以下错误

Ld /Users/GhostMac/Library/Developer/Xcode/DerivedData/Retail_Wizard_Solution-eazomrmcxqeysfehcgngulleshls/Build/Intermediates/iFurniture.build/Debug-iphoneos/iFurniture.build/Objects-normal/armv7s/iFurniture normal armv7s
    cd /Volumes/GhostWork/HomeWork/Sachchaudary/furniture-wizard/FurnitureWizard
    setenv IPHONEOS_DEPLOYMENT_TARGET 5.0
    setenv PATH "/Volumes/GraveYard/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Volumes/GraveYard/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Volumes/GraveYard/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7s -isysroot /Volumes/GraveYard/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -L/Users/GhostMac/Library/Developer/Xcode/DerivedData/Retail_Wizard_Solution-eazomrmcxqeysfehcgngulleshls/Build/Products/Debug-iphoneos -L/Volumes/GhostWork/HomeWork/Sachchaudary/furniture-wizard/FurnitureWizard/../OpenSSL/lib -F/Users/GhostMac/Library/Developer/Xcode/DerivedData/Retail_Wizard_Solution-eazomrmcxqeysfehcgngulleshls/Build/Products/Debug-iphoneos -filelist /Users/GhostMac/Library/Developer/Xcode/DerivedData/Retail_Wizard_Solution-eazomrmcxqeysfehcgngulleshls/Build/Intermediates/iFurniture.build/Debug-iphoneos/iFurniture.build/Objects-normal/armv7s/iFurniture.LinkFileList -dead_strip -all_load -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=5.0 -lz -lTBXML-iOS -lsqlite3 -lFMDB -lcrypto -lssl -lxml2 -framework SystemConfiguration -framework QuartzCore -framework ExternalAccessory -framework CFNetwork -framework AddressBook -framework AddressBookUI -framework MessageUI -framework CoreText -lHTTPServer -framework CoreData -lAshleyWebservice -lCommon -lDDXML -lFTPServer -lTapkuLibrary -lWizardScanner -framework UIKit -framework Foundation -framework CoreGraphics -o /Users/GhostMac/Library/Developer/Xcode/DerivedData/Retail_Wizard_Solution-eazomrmcxqeysfehcgngulleshls/Build/Intermediates/iFurniture.build/Debug-iphoneos/iFurniture.build/Objects-normal/armv7s/iFurniture

ld: warning: ignoring file /Users/GhostMac/Library/Developer/Xcode/DerivedData/Retail_Wizard_Solution-eazomrmcxqeysfehcgngulleshls/Build/Products/Debug-iphoneos/libTBXML-iOS.a, file was built for archive which is not the architecture being linked (armv7s): /Users/GhostMac/Library/Developer/Xcode/DerivedData/Retail_Wizard_Solution-eazomrmcxqeysfehcgngulleshls/Build/Products/Debug-iphoneos/libTBXML-iOS.a
ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /Volumes/GhostWork/HomeWork/Sachchaudary/furniture-wizard/OpenSSL/lib/libcrypto.a for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
4

1 回答 1

4

Armv7s 指的是 iPhone5 硬件。从 Xcode 4.5 GM 开始,这是默认架构。如果您有权访问该库的源代码,则应将架构 armv7s 添加到Target -> Architectures.

如果您无法重建库,只需从项目目标设置中的架构和有效架构以及您拥有的任何子项目中删除 armv7s。

您也可以在此处尝试该方法,但是,鉴于您问题中的目录位于作业目录中,我假设您不会提交到应用商店,因此可以从您的架构中省略 armv7。

于 2012-09-18T07:14:59.950 回答