Convert NIB Files to XIB Files

Elmo picture Elmo · Apr 8, 2012 · Viewed 20.9k times · Source

Is there a way to convert NIB files to XIB files so that I can open them in Xcode 4? Once I have edited them, is there a way to convert them back to NIB?

Answer

Rob Napier picture Rob Napier · Apr 8, 2012

Once a nib file has been flattened and stripped (which is now a default part of the compilation process), then it is challenging to open it in IB. You may want to look at NibUnlocker, which is useful in converting a flattened nib file into xib, but it is not a lossless round-trip and it may not even work in all cases. As with most decompilers, much of the useful editing information has already been thrown away.

For more information on xib compilation, see ibtool(1).