如何使用 MOgenerator 的 xmod?
我刚刚安装了 MOgenerator 1.21 以便与 Xcode 3.2.5 一起使用(如果相关的话,在 iOS 项目上)。
我可以从终端运行 mogenerator 命令。但我似乎无法让 xmod 工作。
mdfind
报告 xmod 是:
/Developer/Library/Xcode/Plug-ins/Xmod.pbplugin
所以看起来它安装正确。我也退出并重新启动 Xcode。
根据记录(包含在一个非常相似的问题中,让我感到困惑),我将“xmod”添加到我的 xcdatamodel 信息页面的注释窗格中,如下图所示:
此窗口上的注释为“xmod” http://emberapp.com/jdmuys/images/untitled/sizes/m.png
现在,我是否构建我的项目,修改我的 xcdatamodel 或两者,没有任何新情况发生:没有生成文件,也没有添加到我的项目中,我的构建日志中没有新的输出。
那么我该如何“启动”xmod 呢? xmod 应该让我知道它已经运行了吗?我应该去哪里看?它应该出现在新的构建阶段吗?
我很困惑,不知道该尝试什么。
谢谢。
I just installed MOgenerator 1.21 for use with Xcode 3.2.5 (on an iOS project if that's relevant).
I can run the mogenerator command from the terminal fine. But I can't seem to have xmod work.
mdfind
reports xmod is :
/Developer/Library/Xcode/Plug-ins/Xmod.pbplugin
So it looks like it's installed correctly. I also quitted and restarted Xcode.
As documented (included in a very similar question that left me puzzled), I added "xmod" to the comment pane in my xcdatamodel info page, as illustrated in the following image:
the comment on this window reads "xmod" http://emberapp.com/jdmuys/images/untitled/sizes/m.png
Now, whether I build my project, modify my xcdatamodel or both, nothing new happens: no file is generated, nor added to my project, no new output is in my build log.
So how am I supposed to "launch" xmod? Is xmod supposed to let me know somehow that it ran? Where should I look? Is it supposed to appear in a new build phase?
I am puzzled and I'm not sure what to try.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我在注释窗格中添加了第二行,其中包含
--output-dir
参数。注释窗格现在显示:现在它开始工作:它生成文件并显示在 Xcode 项目中。
为什么没有任何地方对此进行解释?不知道...
I added a second line to the comment pane, with the
--output-dir
parameter. The comment pane now reads:And now it starts working: it generates the files and they show up in the Xcode project.
Why wasn't that explained anywhere? No idea...
Xmo'd 1.21 引入了一个错误,它不会创建您的 MO src 文件夹如果它还不存在的话,给你。
--output-dir
只是一种解决方法。修复已提交并将出现在 mogenerator/Xmo'd 1.22 中
Xmo'd 1.21 introduced a bug where it wouldn't create your MO src folder for you if it didn't already exist.
--output-dir
is just a work-around.The fix has been committed and will be in mogenerator/Xmo'd 1.22