接入支付宝sdk之后,发现了这个问题: 直接32个warning
image.png
解决方案:
本来看到文件找不到我以为是sdk加载路径的问题,
然后网上搜了一下,看样子是不影响使用的,
但是,对于强迫症患者来说,看到这么多的warning还是很不舒服的。
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 。
更新
使用上面所述的方案是有些问题的,Debug Information Format的release 模式改为DWARF后,在打包的时候不会生成.dSYM文件,这就造成了你无法追踪定位线上BUG
所以目前只能先忍受这些警告了
2. openssl/asn1.h' file not found
BuildSetting -> Search Path -> Header Search Paths下添加如下图所示路径
双清,重新编译,OK
image.png