第三方庫pod錯(cuò)誤:ld: library not found for -lXXX
在Xcode編譯的時(shí)候,可能會(huì)遇到報(bào)這個(gè)錯(cuò)誤"library not found for -lAFNetworking"
解決方案:
1、打開項(xiàng)目工程.xcworkspace 文件
2、左工作區(qū)選擇 Pods-> PROJECT 選中 Pods -> Build Strrings -> Build Active Architecture Only 設(shè)置為 NO

image.png
3、command+shift+k , command+b 重新編譯即可