Convert NIB to XIB without Interface Builder

Viking picture Viking · Apr 7, 2011 · Viewed 9k times · Source

I've upgraded to XCode 4 and because IB is now inside none of my old NIB files will open getting a "An instance of ASKNibConnector could not be decoded" error. Is there a way to convert NIBs to XIBs without interface builder? or do you have to do something like reinstall 3, convert the nibs and reinstall 4?

Answer

ThomasW picture ThomasW · Oct 23, 2011

To convert your nib to xib format, use the command line tool ibtool like this:

ibtool foo.nib --upgrade --write foo.xib

Or use this gist to find all your nibs and convert them: https://gist.github.com/254161