iOS 消除你的黄色警告

2017-12-12  本文已影响25人  表弟1616

1.解决警告warning: directory not found for option

解决方法:

选择项目名称----->Targets----->Build Settings----->Search Paths----->Library Search Paths

删除对应路径

ld: warning: directory not found for option“XXXXXX”

很奇怪,为什么已经从项目中删除了文件和文件夹还是报这个警告呢?

去掉警告的办法如下:

1选择工程, 编译的 (targets)

2选择 Build Settings 菜单

3查找 Library Search Paths 和 Framework Search Paths, 删掉编译报warning的路径即OK

2.xcode中 有时候会报一个警告:

[WARN]Warning: Multiple build commands for output file /xxx

要解决这个问题很简单:

1.选择你的工程

2.选择target

3.点击 Build Phases

4.展开Copy Bundle Resources

5.删除里面的刚才提示警告的文件,一般为红色的名字的文件

上一篇 下一篇

猜你喜欢

热点阅读