欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

iOS ld: library not found for -lAFNetworking clang: error: linker command faile

程序员文章站 2022-05-29 08:25:42
...

 

 

: warning: directory not found for option '-L/Users/admin/Library/Developer/Xcode/DerivedData/NestDemo-almayqfsgvdsjbacbpifhxrdbxes/Build/Products/Debug-iphoneos/react-native-viewpager'

ld: warning: directory not found for option '-L/Users/admin/Library/Developer/Xcode/DerivedData/NestDemo-almayqfsgvdsjbacbpifhxrdbxes/Build/Products/Debug-iphoneos/react-native-webview'

ld: warning: directory not found for option '-L/Users/admin/Library/Developer/Xcode/DerivedData/NestDemo-almayqfsgvdsjbacbpifhxrdbxes/Build/Products/Debug-iphoneos/rn-fetch-blob'

ld: library not found for -lAFNetworking

 

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

 

在编辑项目时,需要这种异常的解决方案

 

 

文件前往/Users/admin/Library/Developer/Xcode/DerivedData/NestDemo-almayqfsgvdsjbacbpifhxrdbxes/Build/Products/Debug-iphoneos/

 

将AFNetworking文件夹下的AFNetworking.a文件复制到Debug-iphoneos文件夹下方即可

 

重新清除Xcode缓存,重新编译,即可通过