这个困扰好久的问题终于找到答案了,亲测有效
ld:warning:directory not found option 的问题可能是framework search paths 还有Library Search Paths 里面并没有这个路径,删除即可