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
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容