Xcode报编译器报错: linker command failed with exit code 1(use -v to see invocation)

来源:互联网 发布:sql数据库定时备份 编辑:程序博客网 时间:2024/06/05 09:20

最近换了台新机子,搭环境,拉代码,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 中手动添加其路径。

参考:
library not found for -xxx

Xcode遇到Library not found for -xxx问题

阅读全文
0 0