本文介绍了nib2objc:找不到命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直试图将NIB文件转换为Objective C代码.我在GitHub上找到了项目NIB2OBJC: https://github.com/akosma/nib2objc ,但是当我键入时命令行:

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

nib2objc tab.xib > tab.m

我收到以下错误:-bash:nib2objc:找不到命令

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

你能告诉我我想念什么吗?

Could you tell me what am I missing?

谢谢

推荐答案

如果您位于nib2objc所在的文件夹中,则必须运行./nib2objc.否则,如果它位于/bin//usr/bin/$PATH中的任何其他文件夹中,则请确保它具有执行权限:

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

祝你好运!

这篇关于nib2objc:找不到命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 23:06