美文网首页
iOS 消除你的黄色警告

iOS 消除你的黄色警告

作者: 表弟1616 | 来源:发表于2017-12-12 20:05 被阅读25次

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.删除里面的刚才提示警告的文件,一般为红色的名字的文件

相关文章

  • iOS 消除你的黄色警告

    1.解决警告warning: directory not found for option 解决方法: 选择项目名...

  • iOS编译警告

    iOS编译警告-消除方法参数检查相关的警告 iOS编译警告-消除注释中的警告

  • eslint 消除黄色警告

    eslint 文章地址: https://www.jianshu.com/p/44880dfb9870 在vsco...

  • Xcode 消除黄色警告

    相关命令查找网站 https://clang.llvm.org/docs/DiagnosticsReferenc...

  • 去除Xcode的一些编译警告

    Semantic Warnings iOS消除对应的警告!

  • Xcode关于警告AutomaticPreferredMaxLa

    Xcode关于警告AutomaticPreferredMaxLayoutWidth的消除方法 在iOS开发中,如果...

  • iOS 消除警告

    消除警告: #pragma clang diagnostic push #pragma clang diagnos...

  • iOS消除警告

    在iOS开发过程中, 我们可能会碰到一些警告,例如:系统弃用方法,没有实现的selector等一些警告。对于有强迫...

  • iOS 消除警告

    强迫症福音 - 如果你想让你的项目没有警告 方法弃用警告 -Wdeprecated-declarations 不...

  • iOS警告消除

    背景:目前iOS 项目警告达到了400多个,夹杂着第三方的, 自己项目代码的混在一起,根本无法及时关注到是否是由于...

网友评论

      本文标题:iOS 消除你的黄色警告

      本文链接:https://www.haomeiwen.com/subject/soanixtx.html