问题
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?
回答1:
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.
来源:https://stackoverflow.com/questions/8628397/how-to-compile-a-nib-file