最近换了台新机子,搭环境,拉代码,Xcode编译时工程报警告
ld: warning: directory not found for option '-F/Applications/Xcode-beta.app/Contents/...'
ld: warning: directory not found for option '-L/...'
ld: library not found for -lPods-XXX
linker command failed with exit code 1 (use -v to see invocation)
一般来说,这应该是xxx库的连接引用有问题
解决办法
在target -> Build Phases -> Link Binary With Libraries 和 Framework Search Paths中将编译报warning的xxx.a路径删除即解决
在target -> Build Settings -> Library Search Paths 中手动添加其路径。