iOS开发中经常遇到这样的警告,如图所示:

ld: warning: directory not found for option

原因是存在未用到的目录。

 

解决方法:选择Build Settings,找到Search Paths中的Library Search Paths,如下图

ld: warning: directory not found for option

 

删除没用到的路径就行了

ld: warning: directory not found for option

 

PS:这些只是警告,并不影响正常编译运行,只是看起来有点不爽。