nib2objc: command not found

邮差的信 提交于 2019-12-11 05:14:24

问题


I've been trying to convert NIB files to Objective C code. I found the project NIB2OBJC on GitHub: https://github.com/akosma/nib2objc but when I type the command line:

nib2objc tab.xib > tab.m

I got the following error: -bash: nib2objc: command not found

Could you tell me what am I missing?

Thanks


回答1:


If you're in the folder where nib2objc is located, then you've to run ./nib2objc. Otherwise, if it's located in /bin/, /usr/bin/ or any other folder in $PATH, then make sure that it has execution permissions:

$ which nib2objc
/foo/bar/nib2objc
$ stat /foo/bar/nib2objc
$ chmod a+x /foo/bar/nib2objc

Good luck!



来源:https://stackoverflow.com/questions/5062065/nib2objc-command-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!