天天看點

XCode 報錯 library not found for -lAFNetworking

ld: library not found for -lAFNetworking

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

盯了錯誤半天才突然發現 自己使用了CocoaPods卻沒有使用workspace打開。然後 Project -> Pods 裡面的 “Build Active Architecture Only” 沒有設定成 “NO”