10

我不断收到此错误,不知道如何解决。我被困了好几天了。我正在使用 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查看调用)

4

2 回答 2

26

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

于 2015-07-25T11:47:10.703 回答
2

我遇到了同样的问题。

我已从Other Linker Flags中删除 -l"bolts"并在 podfile 中将平台设置为 iOS 7.0。然后清理-> 构建。这对我有用。

于 2015-10-07T05:51:40.550 回答