【问题标题】:library not found for -lBolts找不到 -lBolts 的库
【发布时间】:2015-10-11 17:45:39
【问题描述】:

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

【问题讨论】:

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


【解决方案1】:

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

【讨论】:

  • 我在 Flutter 上遇到了同样的问题,这个答案也对我有用
【解决方案2】:

我遇到了同样的问题。

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

【讨论】:

    猜你喜欢
    • 2017-05-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-11-06
    • 2014-02-14
    • 2013-06-08
    • 2020-03-21
    • 2017-11-10
    相关资源
    最近更新 更多