iOS ld: library not found for -lAFNetworking clang: error: linker command faile
: 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缓存,重新编译,即可通过