If I'm editing a nib file that I decompiled ( https://github.com/akahan/Nib-Decompiler ) from an application, how do I re-compile it into the original uneditable nib format so that I can put it back into the application?
A NIB file is a touch-enabled user interface object for an iOS app created by the Interface Builder component of Xcode integrated development environment. Such NIB files are usually generated by Interface Builder's Cocoa or Carbon interface. They contain elements such as buttons and text fields.
To create a NB file: Open the Nota Bene application, select File → Save As... or click the "Save As" arrow icon on the left pane of the Nota Bene window. Choose the save location of your file and name it. The "Save as type" default creates the NB file, click Save.
A nib file is an Interface Builder document. You use Interface Builder to design the visual parts of your app—such as windows and views—and sometimes to configure nonvisual objects, such as the controller objects that your app uses to manage its windows and views.
If you're creating a new ViewController specifically, you can also choose the "Cocoa Touch" section and select the "UIViewController subclass" item. There is a checkbox in the next page called "With XIB for User Interface." which will create the NIB as well as the associated class files. Save this answer.
Use ibtool. The command line should be something along the lines of:
ibtool --compile output.nib input.nib
(Yes, output before input; the output name is the argument to the --compile
flag, while the input name is ibtool
's direct object argument.)
You may need other options, depending on your needs; see the manpage for details on all of them.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With