Search code examples
iosxcodecoreml

Coreml: Model class has not been generated yet


I've converted model from keras with coremltools, added it to project and added to targets. And then when i'm pressing on model in navigator in Model Class section i'm getting "Model class has not been generated yet.". What does it mean?

enter image description here


Solution

  • Cited from apple dev forum:

    Xcode has stopped automatically adding the coreml model to the build settings of your project. To solve, go to your target, go to build phases, find compile sources and add your coreml model. After this, the model class is generated.