gpt4 book ai didi

iphone - xcode 4.5 GM 上的 ld 警告,

转载 作者:行者123 更新时间:2023-12-03 20:42:06 35 4
gpt4 key购买 nike

当我在开发者预览版上运行我的代码时,它可以工作,但在 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)

最佳答案

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

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

您也可以尝试方法here但是,鉴于您问题中的目录位于家庭作业目录中,我假设您不会提交到应用程序商店,因此可以从您的架构中删除armv7s。

关于iphone - xcode 4.5 GM 上的 ld 警告,,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12471845/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com