老样子,先摆出参考的链接
【解决方法】ld: warning: directory not found for option
这个警告有时候是比较好解决的——在Build Setting引入了多余的链接地址时,
如果是TARGETS->Build Settings->Library Search Paths中存在多余的静态库链接,就会报:
"directory not found for option '-L/..."
动态库TARGETS->Build Settings->Search Paths->Framework Search Paths则是:
"directory not found for option '-F/..."
说个实例:比如警告提示是这样的:
directory not found for option '-L/Users/GGBoy002/Downloads/项目/2018年/Demo/hud/AppDelegate.h'
那删除TARGETS->Build Settings->Search Paths->Library Search Paths中的"$(SRCROOT)/hud/AppDelegate.h"这个链接就好了
后续应该还是会遇到这种问题,但是应该不止静/动态库中有了多余的链接,毕竟TARGETS->Build Settings->Search Paths中不止这两个子目录