error: linker command failed with exit code 1 (use -v to see invocation)

報錯12個:
Ld /Users/muzi/Library/Developer/Xcode/DerivedData/Test-dgoxexrhktbbjyhfntwybbjmdrib/Build/Intermediates/Test.build/Debug-iphonesimulator/Test.build/Objects-normal/i386/Test normal i386
cd /Users/muzi/Documents/iOS/iOS-Test
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"

ld: library not found for -lAFNetworking
clang: error: linker command failed with exit code 1 (use -v to see invocation)


這種錯誤有很多種情況:
1.依賴庫滿意添加
2.某些文件路徑配置錯誤
3.architecture設置

本項目中把這個屬性build active architecture only設置為no了。導致報錯。


build active architecture only屬性設置為yes
最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容