Difficulty running CoreML model in new Swift Playground app

Hi everyone,

I'm having trouble running a CoreML model in the new Swift Playground app. I trained and exported the model from CreateML, saved it as a .mlmodel file, and then dragged it into the Xcode project of my playground. However, the model class wasn't generated automatically, so I put the model in a different project and copied the class over. Despite this, the model still doesn't run - Xcode can't find the compiled source (mlmodelc).

To try and fix this, I compiled the model in another project and then dragged the mlmodelc folder over to the playground project. However, Xcode still couldn't build, saying that there was no available target.

I'm not sure what to do next - the model works fine in another normal Xcode project. Any help or advice would be greatly appreciated! Let me know if you need more information.

Thanks in advance!

Hi , did you find the issue

Difficulty running CoreML model in new Swift Playground app
 
 
Q