2015-09-27 75 views
0

我試圖去編寫這個程序「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

回答

0

我能用下面的代碼解決同樣的問題。

將此添加到Build Settings中的庫搜索路徑中,並確保選擇遞歸,刪除可能是絕對路徑的其他庫路徑。

$(PROJECT_DIR) 

可能會幫助你。

相關問題