Coreml: Model class has not been generated yet

Viewed 1666

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

4 Answers

target -> Build Setting -> CoreML Model Compiler - Code Generation -> CoreML Generated Model Inherits NSObject -> YES

enter image description here

For me even though I have added it in the compile sources section of build settings didn't worked.

After many hours, Cracked it by setting the "CoreML Code Generation Language" setting in project build settings to something else than none or to the specific language solved the issue.

Related