本文介绍了Mogenerator断言失败:(momcTool&“momc not found”),function - [MOGeneratorApp setModel:]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法获得Mogenerator 1.27生成NSManagedObject类,因为我收到此错误:

I can't get Mogenerator 1.27 to generate the NSManagedObject classes as I'm getting this error:

我使用这个命令:

mogenerator -m myApp / myModel.xcdatamodeld / myModel.xcdatamodel -O myApp / Model --template-var arc = true

我的旧电脑,但不是我的新的与同一版本的Mogenerator。为什么它不能在我的新电脑上工作?

The exact same command works on my old computer, but not on my new one with the same version of Mogenerator. Why would it not work on my new computer?

推荐答案

您可能需要告诉Xcode在首选项/位置中使用哪些命令行工具。我已经从Xcode 4,5和6累积了几个,这个选择已经变成空白了。

You may need to tell Xcode which command line tools to use, in Preferences/Locations. I had accumulated several from Xcode 4, 5 and 6 and this selection had become blank somehow.

这篇关于Mogenerator断言失败:(momcTool&“momc not found”),function - [MOGeneratorApp setModel:]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 07:30