How to disable Linker Warnings from static libraries on xcode?

半腔热情 提交于 2019-12-07 05:53:42

问题


In my current Swift project, I have a 3rd party static library, added through the Build Phases > "Link Binary With Libraries" section.

After updating to xcode 8.3, this library started throwing some linker warnings (e.g.: pointer not aligned at address 0x00000 from libraryFile.a)

As pointed out by other answers (https://stackoverflow.com/a/8580123/2754958 and https://stackoverflow.com/a/6921972/2754958), the compiler warnings could be ignored by adding a flag to the library code.

However, in my case, the libraries are static, and the warning are from the linker. Is there a way to disable linker warning from static 3rd party libraries on xcode?

来源:https://stackoverflow.com/questions/43261876/how-to-disable-linker-warnings-from-static-libraries-on-xcode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!