简体   繁体   English

Apple Mach-O链接器错误:未找到-lBolts clang的库:错误:

[英]Apple Mach-O linker error:library not found for -lBolts clang: error:

I'm trying go to compile this app " https://github.com/ParsePlatform/ParseStore ".but I have an error 我正在尝试编译此应用程序“ https://github.com/ParsePlatform/ParseStore ”。但是我遇到了错误

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/ma 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 = 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 / Developer / mavericer / Library Xcode / DerivedData / Store-hgscvoaueijbrwfuqfsdkjaxcpmv / Build / Products / Debug-iphonesimulator -F / Users / mavericmax / Downloads / ParseStore-master -F \\“ / Users / ma vericmax/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 Quar vericmax /下载/ ParseStore-master / Store / Vendor \\“ -F /用户/ mavericmax /下载/ ParseStore-master / Store / Vendor -F / Users / mavericmax / Downloads / Bolts-iOS / ios-文件列表/ Users / mavericmax /库/开发人员/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- -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 PassKit -weak_framework社交-fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min = 8.1 -framework SystemConfiguration -framework StoreKit -framework Social -framework Security -framework Quar tzCore -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 tzCore -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 /库/开发人员/Xcode/DerivedData/Store-hgscvoaueijbrwfuqfsdkjaxcpmv/Build/Intermediates/Store.build/Debug-iphonesimulator/Store.build/Objects-normal/x86_64/Parse \\ Store_dependency_info.dat -o / Users / mavericmax开发人员/ 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) ld:警告:找不到选项'-F“ / Users / mavericmax / Downloads / ParseStore-master / Store / Vendor”的目录ld:找不到-lBolts库的库:错误:链接器命令失败,退出代码为1(使用-v查看调用)

The directory 'vendor' exists, and I have additionally copied Bolts framework manually, clean and build(which failed).If anyone can point out what is wrong here, I'd appreciate it. 目录``vendor''存在,我还手动复制了Bolts框架,将其清理并构建(失败了)。如果有人指出这里出了问题,我将不胜感激。

I was able to solve the same problem with the following code. 我可以使用以下代码解决相同的问题。

Add this to the Library Search Paths in Build Settings and make sure you select recursive, delete other library paths which might be absolute paths. 将此添加到“构建设置”中的“库搜索路径”,并确保选择“递归”,删除其他库路径,这些路径可能是绝对路径。

$(PROJECT_DIR) 

May be it will help you. 可能会对您有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM