[英]Xcode - 'library not found for -lPods-[Pod]'
因此,我向項目中添加了一些Cocoapods,現在當我構建時,出現以下錯誤:
Ld Build/Products/Debug-iphonesimulator/[AppName].app/[AppName] normal x86_64
cd /Users/[username]/Developer/[AppName]
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk -L/Users/[username]/Developer/[AppName]/Build/Products/Debug-iphonesimulator -L/Users/[username]/Developer/[AppName] -F/Users/[username]/Developer/[AppName]/Build/Products/Debug-iphonesimulator -filelist /Users/[username]/Developer/[AppName]/Build/Intermediates/[AppName].build/Debug-iphonesimulator/[AppName].build/Objects-normal/x86_64/[AppName].LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lCMDQueryStringSerialization -lISO8601 -lReactiveCocoa -lSimpleAuth -lc++ -lpop -framework Foundation -framework UIKit -lPods-CMDQueryStringSerialization -lPods-ISO8601 -lPods-ReactiveCocoa -lPods-SimpleAuth -framework Foundation -framework UIKit -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=8.0 -framework MapKit -framework CoreLocation -lPods -Xlinker -dependency_info -Xlinker /Users/[username]/Developer/[AppName]/Build/Intermediates/[AppName].build/Debug-iphonesimulator/[AppName].build/Objects-normal/x86_64/[AppName]_dependency_info.dat -o /Users/[username]/Developer/[AppName]/Build/Products/Debug-iphonesimulator/[AppName].app/[AppName]
ld: library not found for -lPods-CMDQueryStringSerialization
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我多次卸載並重新安裝了工作區中的所有Cocoapods,但無濟於事。 我還看到了許多其他類似的錯誤,並做了那些答案所說的事情,但是我仍然遇到錯誤。
另外,作為一個旁注,之前我沒有得到這個錯誤,而是一個“ 233 x86_64體系結構的重復符號”錯誤,它指向某些吊艙中的某些(閱讀:很多)Objective-C文件(即ReactiveCocoa)。 在我將Facebook的Pop pod添加到Podfile之后,似乎出現了這些錯誤,但是我沒有指責,因為我敢肯定這不會引起所有這些問題。
請並感謝您的任何幫助!
編輯:這是Podfile:
pod 'SimpleAuth/LinkedInWeb'
pod 'SimpleAuth/GoogleWeb'
pod 'pop', '~> 1.0'
inhibit_all_warnings!
更新和修復:
好的,我已經解決了這個問題。 這是我所做的:
pod install
。 我不確定所有這些步驟的必要性,但這就是我為自己修復的步驟。
將pod 'SimpleAuth'
添加到Podfile並運行pod install
,看看是否有幫助。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.