苹果Mach-O的连接错误:库没有发现-lBolts铛:错误:

问题描述:

我试图去编写这个程序“https://github.com/ParsePlatform/ParseStore”。但我有一个错误苹果Mach-O的连接错误:库没有发现-lBolts铛:错误:

Ld /Users/mavericmax/Library/Developer/Xcode/DerivedData/Store-hgscvoaueijbrwfuqfsdkjaxcpmv/Build/Products/Debug-iphonesimulator/Parse\ Store.app/Parse\ Store normal x86_64 cd /Users/mavericmax/Downloads/ParseStore-master 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.4.sdk -L/Users/mavericmax/Library/Developer/Xcode/DerivedData/Store-hgscvoaueijbrwfuqfsdkjaxcpmv/Build/Products/Debug-iphonesimulator -F/Users/mavericmax/Library/Developer/Xcode/DerivedData/Store-hgscvoaueijbrwfuqfsdkjaxcpmv/Build/Products/Debug-iphonesimulator -F/Users/mavericmax/Downloads/ParseStore-master -F\"/Users/mavericmax/Downloads/ParseStore-master/Store/Vendor\" -F/Users/mavericmax/Downloads/ParseStore-master/Store/Vendor -F/Users/mavericmax/Downloads/Bolts-iOS/ios -filelist /Users/mavericmax/Library/Developer/Xcode/DerivedData/Store-hgscvoaueijbrwfuqfsdkjaxcpmv/Build/Intermediates/Store.build/Debug-iphonesimulator/Store.build/Objects-normal/x86_64/Parse\ Store.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -lBolts -lMBProgressHUD -lParse -lParseUI -lStripe -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 AddressBook -weak_framework PassKit -weak_framework Social -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=8.1 -framework SystemConfiguration -framework StoreKit -framework Social -framework Security -framework QuartzCore -framework MobileCoreServices -lz.1.1.3 -lsqlite3 -framework CoreLocation -framework CoreGraphics -framework CFNetwork -framework AdSupport -framework Accounts -framework AudioToolbox -framework UIKit -framework Bolts -framework Foundation -lPods -Xlinker -dependency_info -Xlinker /Users/mavericmax/Library/Developer/Xcode/DerivedData/Store-hgscvoaueijbrwfuqfsdkjaxcpmv/Build/Intermediates/Store.build/Debug-iphonesimulator/Store.build/Objects-normal/x86_64/Parse\ Store_dependency_info.dat -o /Users/mavericmax/Library/Developer/Xcode/DerivedData/Store-hgscvoaueijbrwfuqfsdkjaxcpmv/Build/Products/Debug-iphonesimulator/Parse\ Store.app/Parse\ Store

ld: warning: directory not found for option '-F"/Users/mavericmax/Downloads/ParseStore-master/Store/Vendor"' ld: library not found for -lBolts clang: error: linker command failed with exit code 1 (use -v to see invocation)

目录“供应商”存在,并且我还手动复制了Bolts框架,清理并构建(失败)。如果任何人都可以指出这里有什么问题,我会很感激。

+0

源树中的libBolts.a在哪里? – Droppy

+0

我已经更新了我的答案,可能会对你有所帮助。 – BHUMICA

我能用下面的代码解决同样的问题。

将此添加到Build Settings中的库搜索路径中,并确保选择递归,删除可能是绝对路径的其他库路径。

$(PROJECT_DIR) 

可能会帮助你。