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中跟踪了faq这种类型的错误,但似乎没有任何效果。任何帮助表示赞赏。
整个错误如下
Ld Build / Products / Debug-iphonesimulator / komunety.app / komunety normal I386 cd / Users / lawrenceflancbaum / Dropbox / AppleDev / AppDev / komunety export IPHONEOS_DEPLOYMENT_TARGET = 8.1 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 i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk -L /用户/ lawrenceflancbaum / Dropbox的/ AppleDev / AppDev / komunety /建设/产品/调试,iphonesimulator -F /用户/ lawrenceflancbaum / Dropbox的/ AppleDev / AppDev / komunety /建设/产品/调试,iphonesimulator -filelist /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 Accounts -weak_framework AudioToolbox -weak_framework CoreGraphics -weak_framework CoreLocation -weak_framework Foundation -weak_framework QuartzCore -weak_framework Security -weak_framework Social - 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 -framework CloudKit -framework MapKit -lPods-komunety -lPods -Xlinker -dependency_info -Xlinker /Users/lawrenceflancbaum/Dropbox/AppleDev/AppDev/komunety/Build/Intermediates/komunety.build/Debug-iphonesimulator/komunety.build/对象 - 正常/ I386 / komunety_dependency_info.dat -o /Users/lawrenceflancbaum/Dropbox/AppleDev/AppDev/komunety/Build/Products/Debug-iphonesimulator/komunety.app/komunety
答案 0 :(得分:3)
试试这个:
删除链接二进制文件中的-lPods-Projectname.a
(对于较新版本,请删除框架组下的-lPods-Projectname.a
。)
来自HERE的参考。
如果不起作用,请尝试:
答案 1 :(得分:0)
我最终从一开始就重建了这个项目。我尝试过做dharmesh的建议以及cocoapods常见问题解答中的所有指示,但我认为在构建设置中有些内容已损坏或未正确设置。重新开始只是我能找到的修复