Can't use mlmodel

My project was created in objective-c, and I am now in mixed development with swift, calling mlmodel, but the method is wrong, and it keeps showing Build target "demos" to generate swift model class. or model class has not been generated yet

How to convert successfully?

Replies

In the project's Build Settings, choose Swift for Core ML Class Generation Language. If it's set to Automatic, Xcode may not know which one to choose if you mix Obj-C with Swift code in the same project.