penguinrob
penguinrob

Reputation: 1459

How to compile a .nib file

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?

Upvotes: 5

Views: 4021

Answers (1)

Peter Hosey
Peter Hosey

Reputation: 96333

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.

Upvotes: 10

Related Questions