I'm trying to bundle an xcdatamodel in a swift executable package.
For some reason without adding anything to my
Package.json, SPM copies the xcdatamodel file from
Sources/MyPackage/Resources/MyDataModel.xcdatamodel to the target bundle's root without compiling it to momd..
I tried to enforce it by providing a resources process parameter:
.target( name: "mtb-video", dependencies: ["mtbUI", "TimecodeKit"], resources: [ .process("Resources/MTBData.xcdatamodel") ]
By trying to find how SPM decided to copy the xcdatamodel verbatim I looked at the build files and the
description.json contains my data model in the copyCommands dict.
So I tried everything again and no matter what it's always part of the copy commands ignoring my process instruction.
Does anyone have a clue?
NOT using XCode on purpose