Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert NIB Files to XIB Files

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?

like image 273
Elmo Avatar asked Apr 08 '12 15:04

Elmo


2 Answers

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).

like image 92
Rob Napier Avatar answered Sep 20 '22 14:09

Rob Napier


I have made a simple application to accomplish this task, here is the link: NibToXibConverter

Here is the code: NibToXibConverter@github

Hope it helps :-)

like image 43
Devarshi Avatar answered Sep 20 '22 14:09

Devarshi