现在把我的头发扯了一个星期。使用cocoapods,最近已从通过facebook-iOS-SDK使用Facebook登录升级(不建议使用)升级到fbsdkcorekit。
podfile如下
platform :ios, '8.0'
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
得到以下错误
ld: library not found for -lPods-komunety
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我已经在cocoapods中针对此类错误进行了跟踪,似乎没有任何效果。任何帮助表示赞赏。
整个错误如下
LD Build /产品/Debug-iphonesimulator/komunety.app/komunety正常
i386
cd /用户/ lawrenceflancbaum / Dropbox / AppleDev / AppDev / komunety
出口IPHONEOS_DEPLOYMENT_TARGET = 8.1
导出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 i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk
-L /用户/ lawrenceflancbaum / Dropbox / AppleDev / AppDev / komunety / Build / Products / Debug-iphonesimulator
-F /用户/ Lawrenceflancbaum / Dropbox / AppleDev / AppDev / komunety / Build / Products / Debug-iphonesimulator
-文件列表/Users/lawrenceflancbaum/Dropbox/AppleDev/AppDev/komunety/Build/Intermediates/komunety.build/Debug-iphonesimulator/komunety.build/Objects-normal/i386/komunety.LinkFileList
-Xlinker -rpath -Xlinker @ executable_path / Frameworks -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lBolts -lFBSDKCoreKit -lFBSDKLoginKit -weak_framework帐户-weak_framework AudioToolbox -weak_framework CoreGraphics -weak_framework Core -Weakweframework Core -Weak_framework Core weak_framework UIKit -fobjc-arc
-fobjc-link-runtime -Xlinker -no_implicit_dylibs -L / Applications / Xcode.app / Contents / Developer / Toolchains / XcodeDefault.xctoolchain / usr / lib / swift / iphonesimulator
-Xlinker -add_ast_path -Xlinker /Users/lawrenceflancbaum/Dropbox/AppleDev/AppDev/komunety/Build/Intermediates/komunety.build/Debug-iphonesimulator/komunety.build/Objects-normal/i386/komunety.swiftmodule
-mios-simulator-version-min = 8.1 -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/lawrenceflancbaum/Dropbox/AppleDev/AppDev/komunety/Build/Intermediates/komunety.build/Debug-iphonesimulator/komunety.build /komunety.app.xcent
-framework CoreLocation-框架CloudKit-框架MapKit -lPods-komunety -lPods -Xlinker -dependency_info -Xlinker /Users/lawrenceflancbaum/Dropbox/AppleDev/AppDev/komunety/Build/Intermediates/komunety.build/Debug-iphonesimulator/komunety。普通对象/i386/komunety_dependency_info.dat
-o /用户/lawrenceflancbaum/Dropbox/AppleDev/AppDev/komunety/Build/Products/Debug-iphonesimulator/komunety.app/komunety
最佳答案
尝试这个:
删除链接二进制中的-lPods-Projectname.a
(对于较新的版本,请删除Frameworks组下的-lPods-Projectname.a
)。
来自HERE的引用。
如果那不起作用,请尝试以下操作:
关于ios - 找不到xcode cocoapods库错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/31691503/