![](/img/trans.png)
[英]clang: error: linker command failed with exit code 1, Xcode Linker Error
[英]Xcode library not found -lpods. Clang: error: linker command failed with exit code 1
我知道這是一個重復的問題,但是我已經嘗試了Stack Overflow中可用的解決方案,並指出對我有幫助。 我通過pod添加MWPhotoBrowser
,並且它正在發生。 我添加的任何內容都會導致相同的錯誤。 以下是日志:
Ld /Users/vijaykas/Library/Developer/Xcode/DerivedData/MyProj-fxonghiiueuyuoeclquaxlqzofjh/Build/Intermediates/MyProj.build/Debug-iphonesimulator/MyProj.build/Objects-normal/i386/MyProj normal i386
cd /Users/vijaykas/MyProj/source/2015/Test/cf_re_ios_app/MyProj
export IPHONEOS_DEPLOYMENT_TARGET=7.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.1.sdk -L/Users/vijaykas/Library/Developer/Xcode/DerivedData/MyProj-fxonghiiueuyuoeclquaxlqzofjh/Build/Products/Debug-iphonesimulator -L/Users/vijaykas/MyProj/source/2015/Test/cf_re_ios_app/MyProj/src/libraries/Flurry -L/Users/vijaykas/MyProj/source/2015/Test/cf_re_ios_app/MyProj/src/libraries/Vizury -L/Users/vijaykas/MyProj/source/2015/Test/cf_re_ios_app/MyProj/src/libraries/Helpshift -L/Users/vijaykas/MyProj/source/2015/Test/cf_re_ios_app/MyProj/src/libraries/Notiphi -L/Users/vijaykas/MyProj/source/2015/Test/cf_re_ios_app/MyProj/src/libraries -L/Users/vijaykas/MyProj/source/2015/Test/cf_re_ios_app/MyProj/src/libraries/GoogleAnalyticsV3.12 -L/Users/vijaykas/MyProj/source/2015/Test/cf_re_ios_app/MyProj/src/libraries/Localytics-iOS-3.5.0 -L/Users/vijaykas/MyProj/source/2015/Test/cf_re_ios_app/MyProj/build/Debug-iphoneos -F/Users/vijaykas/Library/Developer/Xcode/DerivedData/MyProj-fxonghiiueuyuoeclquaxlqzofjh/Build/Products/Debug-iphonesimulator -F/Users/vijaykas/MyProj/source/2015/Test/cf_re_ios_app/MyProj -filelist /Users/vijaykas/Library/Developer/Xcode/DerivedData/MyProj-fxonghiiueuyuoeclquaxlqzofjh/Build/Intermediates/MyProj.build/Debug-iphonesimulator/MyProj.build/Objects-normal/i386/MyProj.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=7.0 -Xlinker -objc_abi_version -Xlinker 2 -all_load -ObjC -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -force_load -Xlinker /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a -Xlinker -add_ast_path -Xlinker /Users/vijaykas/Library/Developer/Xcode/DerivedData/MyProj-fxonghiiueuyuoeclquaxlqzofjh/Build/Intermediates/MyProj.build/Debug-iphonesimulator/MyProj.build/Objects-normal/i386/MyProj.swiftmodule -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/vijaykas/Library/Developer/Xcode/DerivedData/MyProj-fxonghiiueuyuoeclquaxlqzofjh/Build/Intermediates/MyProj.build/Debug-iphonesimulator/MyProj.build/MyProj.app.xcent -framework WebKit -lAdIdAccess -lGoogleAnalyticsServices -framework CoreTelephony -framework MediaPlayer -framework CoreMotion -framework AssetsLibrary -framework AddressBook -framework Crashlytics -framework MobileAppTracker -lVizuryEventLogger -framework AdSupport -framework iAd -framework MobileCoreServices -lNotifyManager -weak_framework SystemConfiguration -weak_framework Security -weak-lz -weak-lsqlite3.0 -lFlurry_5.0.0 -lLocalytics -weak_framework CoreText -framework CoreLocation -framework CoreData -framework MessageUI -framework AVFoundation -framework AddressBookUI -framework QuartzCore -lHelpshift -framework CFNetwork -framework MapKit -framework GooglePlus -framework FacebookSDK -framework UIKit -framework Foundation -framework CoreGraphics -framework MobileDeepLinking -framework GoogleOpenSource -lPods -Xlinker -dependency_info -Xlinker /Users/vijaykas/Library/Developer/Xcode/DerivedData/MyProj-fxonghiiueuyuoeclquaxlqzofjh/Build/Intermediates/MyProj.build/Debug-iphonesimulator/MyProj.build/Objects-normal/i386/MyProj_dependency_info.dat -o /Users/vijaykas/Library/Developer/Xcode/DerivedData/MyProj-fxonghiiueuyuoeclquaxlqzofjh/Build/Intermediates/MyProj.build/Debug-iphonesimulator/MyProj.build/Objects-normal/i386/MyProj
Ld: warning: directory not found for option '-L/Users/vijaykas/MyProj/source/2015/Test/cf_re_ios_app/MyProj/build/Debug-iphoneos'
ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)
您必須打開 <YourProject>.xcworkspace
而不是<YourProject>.xcodeproj
。
xcworkspace
包含您的project
和pods
。
您還可以按照以下步驟操作:
Device
或Simulator
卸載該App
。 Xcode
項目。 ( .xcworkspace
和.xcproject
)(有時.xcproject
仍處於打開狀態) pod install
和pod update
.xcworkspace
之后,您應該可以正常運行。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.