2012-09-18 56 views
2

當我在開發perview我的代碼運行,但workes對GM以下錯誤LD警告,

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) 
+1

您正在鏈接到爲模擬器或較舊設備(分別爲i386/x86_64或armv6)構建的靜態庫。鏈接到另一個庫。 – 2012-09-18 07:07:32

回答

4

Armv7s指iPhone5的硬件種子公司給的。從Xcode 4.5 GM開始,這是一個默認架構。如果您有權訪問庫的源,則應該在Target -> Architectures中添加體系結構armv7。

如果無法重建庫,只需從項目目標設置中的體系結構和有效體系結構以及您擁有的任何子項目中移除armv7即可。

你也可以嘗試here的方法,但是,考慮到你的問題中的目錄在家庭作業目錄中,我假設你不會提交到應用商店,因此可以省去架構中的armv7s 。

+0

感謝您的幫助:) – GhostRider

相關問題