Ahmed Z.
Ahmed Z.

Reputation: 2337

Sudden Warning on XCode 5.1

I suddenly started getting this error after upgrading my Xcode 5.0.2 to Xcode 5.1

warning: ignoring debug info with an invalid version (0)

There are like 22 of these warnings coming up when compiling my code...

I haven't encountered anything like this before… Please can anyone help.. thanks in advance..

Upvotes: 1

Views: 725

Answers (2)

Tankista
Tankista

Reputation: 1770

Check files that are related to warnings. If will be probably a third party library. Try to recompile that lib with new Xcode.

Upvotes: 1

simalone
simalone

Reputation: 2768

In XCode target BuildSettings, search DEAD_CODE_STRIPPING and set Value to NO.

This is a bug with LTO and -dead_strip. The workaround is to stop using one of them.

way Link Time Optimization (LTO) works is that the compiler stops half way through and emits the .o file as "bit code" (the internal clang IR) instead of compiling down to mach-o. This is drive by the -flto compiler option. When the linker encounters bit-code .o files, it loads up the back end of clang (libLTO.dylib) and merges/compiles all the bit-code files into mach-o then completes the link.

The Link

Upvotes: 3

Related Questions