找不到-lBolts的库

时间:2015-07-22 03:06:59

标签: swift xcode compiler-errors xcode6 bolts-framework

我一直收到此错误,并且不知道如何修复。我已经被困了好几天了。我正在使用Parse来构建这个应用程序并尝试添加它与pod。这是我得到的错误:

Ld /Users/gerbonilla/Library/Developer/Xcode/DerivedData/PixelFrontEnd-fuxewjczxiwihfairfbnkgdzbktq/Build/Intermediates/PixelFrontEnd.build/Debug-iphonesimulator/PixelFrontEnd.build/Objects-normal/x86_64/PixelFrontEnd normal x86_64
cd /Users/gerbonilla/Xcode/FrontEnd/PixelFrontEnd/PixelFrontEnd
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 x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.3.sdk -L/Users/gerbonilla/Library/Developer/Xcode/DerivedData/PixelFrontEnd-fuxewjczxiwihfairfbnkgdzbktq/Build/Products/Debug-iphonesimulator -L/Users/gerbonilla/Xcode/FrontEnd/PixelFrontEnd/PixelFrontEnd/Pods/Parse -F/Users/gerbonilla/Library/Developer/Xcode/DerivedData/PixelFrontEnd-fuxewjczxiwihfairfbnkgdzbktq/Build/Products/Debug-iphonesimulator -F/Users/gerbonilla/Xcode/FrontEnd/PixelFrontEnd/PixelFrontEnd -filelist /Users/gerbonilla/Library/Developer/Xcode/DerivedData/PixelFrontEnd-fuxewjczxiwihfairfbnkgdzbktq/Build/Intermediates/PixelFrontEnd.build/Debug-iphonesimulator/PixelFrontEnd.build/Objects-normal/x86_64/PixelFrontEnd.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -objc_abi_version -Xlinker 2 -ObjC -undefined dynamic_lookup -lBolts -lParse -lParseLib -lParseUI -lsqlite3 -lz -framework AudioToolbox -framework CFNetwork -framework CoreGraphics -framework CoreLocation -framework Foundation -framework QuartzCore -framework Security -framework StoreKit -framework SystemConfiguration -framework UIKit -weak_framework Accounts -weak_framework Social -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/gerbonilla/Library/Developer/Xcode/DerivedData/PixelFrontEnd-fuxewjczxiwihfairfbnkgdzbktq/Build/Intermediates/PixelFrontEnd.build/Debug-iphonesimulator/PixelFrontEnd.build/Objects-normal/x86_64/PixelFrontEnd.swiftmodule -mios-simulator-version-min=8.1 -lsqlite3 -lz -framework SystemConfiguration -framework StoreKit -framework Security -framework QuartzCore -framework Parse -framework MobileCoreServices -framework CoreLocation -framework CoreGraphics -framework CFNetwork -framework AudioToolbox -framework Photos -framework Bolts -lPods -Xlinker -dependency_info -Xlinker /Users/gerbonilla/Library/Developer/Xcode/DerivedData/PixelFrontEnd-fuxewjczxiwihfairfbnkgdzbktq/Build/Intermediates/PixelFrontEnd.build/Debug-iphonesimulator/PixelFrontEnd.build/Objects-normal/x86_64/PixelFrontEnd_dependency_info.dat -o /Users/gerbonilla/Library/Developer/Xcode/DerivedData/PixelFrontEnd-fuxewjczxiwihfairfbnkgdzbktq/Build/Intermediates/PixelFrontEnd.build/Debug-iphonesimulator/PixelFrontEnd.build/Objects-normal/x86_64/PixelFrontEnd
  

ld:找不到 -lBolts

的库      

clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)

2 个答案:

答案 0 :(得分:23)

尝试使用.xcworkspace文件而不是.xcodeproj文件打开您的项目。

答案 1 :(得分:1)

我遇到了同样的问题。

我已经删除了-l" bolt"来自其他链接器标志,并将该平台设置为podfile中的iOS 7.0。然后清洁 - >建立。这对我有用。