mogenerator: use of unresolved identifier

100 views Asked by At

Trying to get coredata working with mogenerator. I have generated the human and machine files by adding an entry in the build phases:

/usr/local/bin/mogenerator --v2 --model virgin1/Model.xcdatamodeld -M virgin1/Model/GerneratedClasses/machine -H virgin1/Model/GerneratedClasses/human --swift

It generates (in my case) the Spot.swift and _Spot.swift files. So far so good. But if I use the Spot class in the project like:

let result = Spot.importSpots(dict)

it gives me a "use of unresolved identifier 'Spot'"

Do I have to include the Spot class anywhere?

Thanks in advance!

0

There are 0 answers