zoukankan      html  css  js  c++  java
  • XCode消除警告、错误

    1.集成支付宝SDK后,报一堆warning: (arm64) /Users/scmbuild/workspace/standard-pay/.....警告

    解决方法:

    1)  Go to Build Settings -> Build Options -> Debug Information Format

    2)  Change the Debug setting from "DWARF with dSYM File" to "DWARF"

    3)  Leave the Release setting at "DWARF with dSYM File"

    AlipaySDK.framework 是先 build 的静态 lib ,然后转成的 framework ,但是在 build 静态 lib 时 CLANG_ENABLE_MODULES 没有被设置成 disabled 。

    2.去除一些无关紧要的警告,项目中指定类型的警告

    解决方法:

    运行程序,在警告上右键选择Reveal in log,可以看到其中有 warning: this block declaration is not a prototype [-Wstrict-prototypes] 这样的警告,复制中括号内的内容,到Target,Build Setting中,搜寻 Other Warning Flags ,在里面新增一个选项,就是刚刚复制的-Wstrict-prototypes,因为我们不想显示警告,所以需要改为-Wno-strict-prototypes,重新运行就ok了。

    3.解决warning: directory not found for option...的错误

    解决方法:查看warning: directory not found for option 后面的路径起始是‘-L’还是‘-F’,

    比如: ld:  '-L/Users//EaseUI/EMUIKit/3rdparty/DeviceHelper/VoiceConvert/opencore-amrnb',这里就是 -L,那么在Target中,选择Build Setting,搜索Library Search Paths,删除对应的路径就OK了,如果以 -F开头,则搜索FrameWork Search Paths,删除对应的路径

  • 相关阅读:
    CCF模拟题 窗口
    CSUOJ 1541 There is No Alternative
    MySQL数据库优化的八种方式(经典必看)
    PHP面向对象-----魔术方法
    PHP面向对象(OOP)----分页类
    2017最新PHP初级经典面试题目汇总(下篇)
    2017最新PHP经典面试题目汇总(上篇)
    原型模式
    适配器模式
    策略模式
  • 原文地址:https://www.cnblogs.com/chenjiangxiaoyu/p/7601297.html
Copyright © 2011-2022 走看看