7

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?

Community
  • 1
  • 1
jotaEsse
  • 261
  • 2
  • 18
  • if you are linking non position independent code... do you really want to ignore the warning? – Grady Player Apr 06 '17 at 17:21
  • I have already notified the library creators about the issue, and since I cannot edit their code, there isn't pretty much I can do about it. While I wait for their update, I would like to fix my CI, which is broken by these warnings since its xcode was updated. – jotaEsse Apr 06 '17 at 17:25
  • I am not sure what is breaking your CI, if it is anything on stderr or an exit code... if it is stderr you could redirect to stdout if it is an exit code, it is probably more than a warning... – Grady Player Apr 06 '17 at 17:30

0 Answers0