集成第三方库的时候经常会报一些警告,如:
1、unable to open object file: No such file or directory
因为在build静态lib时,CLANG_ENABLE_MODULES没有被设置成NO。
解决办法:1231) Go to Build Settings -> Build Options -> Debug Information Format2) Change the Debug setting from "DWARF with dSYM File" to "DWARF"3) Leave the Release setting at "DWARF with dSYM File"
但是这不是根本解决办法,根本的还是需要静态库提供者去消除这个警告。
2、ld: pointer not aligned at address 0x13735E9
解决办法:
参考:
https://pewpewthespells.com/blog/buildsettings.html#clang_enable_modules
https://stackoverflow.com/questions/42268117/how-to-remove-the-xcode-warning-apple-mach-o-linker-warning-pointer-not-aligned/43056194#43056194