安装带有Cocoa Pod的Facebook Pop后Apple Mach-O链接器错误

时间:2014-07-13 14:31:02

标签: xcode linker console output mach-o

我的项目编译得很好。我决定使用Cocoa Pods为我的项目安装Facebook Pop。

从命令行安装很顺利。

回到XCode,构建时,我得到Apple Mach-O链接器错误(参见日志):

Ld /Users/karl/Library/Developer/Xcode/DerivedData/WOwe-cpzrvvxdoeffbsebcfuellqfleae/Build/Intermediates/WOwe.build/Debug-iphoneos/WOwe.build/Objects-normal/armv7/WOwe normal armv7
    cd /Users/karl/Documents/Projects/XCode/CrunchyBytes/WOwe
    export IPHONEOS_DEPLOYMENT_TARGET=7.0
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk -L/Users/karl/Library/Developer/Xcode/DerivedData/WOwe-cpzrvvxdoeffbsebcfuellqfleae/Build/Products/Debug-iphoneos -F/Users/karl/Library/Developer/Xcode/DerivedData/WOwe-cpzrvvxdoeffbsebcfuellqfleae/Build/Products/Debug-iphoneos -F/Users/karl/Documents/FacebookSDK -filelist /Users/karl/Library/Developer/Xcode/DerivedData/WOwe-cpzrvvxdoeffbsebcfuellqfleae/Build/Intermediates/WOwe.build/Debug-iphoneos/WOwe.build/Objects-normal/armv7/WOwe.LinkFileList -dead_strip -ObjC -lc++ -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=7.0 -framework AddressBook -framework AddressBookUI -framework CoreData -framework CoreGraphics -framework CoreLocation -framework FacebookSDK -framework Foundation -framework MapKit -framework UIKit -lPods -Xlinker -dependency_info -Xlinker /Users/karl/Library/Developer/Xcode/DerivedData/WOwe-cpzrvvxdoeffbsebcfuellqfleae/Build/Intermediates/WOwe.build/Debug-iphoneos/WOwe.build/Objects-normal/armv7/WOwe_dependency_info.dat -o /Users/karl/Library/Developer/Xcode/DerivedData/WOwe-cpzrvvxdoeffbsebcfuellqfleae/Build/Intermediates/WOwe.build/Debug-iphoneos/WOwe.build/Objects-normal/armv7/WOwe

ld: library not found for -lPods
clang: error: linker command failed with exit code 1 (use -v to see invocation)

知道可能是什么原因?

0 个答案:

没有答案