Xcode没有找到Mogenerator [英] Mogenerator not found by Xcode

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

问题描述

我正在尝试在Xcode 5中开发的iOS项目中使用Mogenerator。我已经安装了Mogenerator并使用brew:

I'm trying to use Mogenerator in my iOS project developed in Xcode 5. I've installed Mogenerator with brew:

brew install mogenerator

然后链接:

brew link mogenerator

之后我可以访问此工具从我的命令行。

After that I have access to this tool from my command line.

接下来我试图在构建阶段(shell / bin / sh)再添加一个步骤(脚本执行):

Next I'm trying to add one more step (script executing) in build phases (shell /bin/sh):

mogenerator --model "${PROJECT_DIR}/MyProject/Model.xcdatamodeld/Model.xcdatamodel" --output-dir "${PROJECT_DIR}/MyProject" --template-var arc=true

实际上我收到错误:

line 2: mogenerator: command not found
Command /bin/sh failed with exit code 127

您有什么建议可以解决这个问题吗?

Do you have any advices how can resolve this issue?

推荐答案

如果/ usr / local / bin不在X使用的搜索路径中代码,您可以使用绝对(完整)路径调用mogenerator

If /usr/local/bin is not in the search path used by Xcode, you can call mogenerator with an absolute (full) path:


/usr/local/bin/mogenerator --model ...

这篇关于Xcode没有找到Mogenerator的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆