-
Notifications
You must be signed in to change notification settings - Fork 32
feat: add support for CoreData source files #207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Don't forget to fix the linting issues :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I use Target.coreDataModels I can only add xcdatamodeld and inner xcdatamodel which are added to BOTH sources and resources
This sounds like a bug. That's not the behavior I'm seeing in our coredata fixture where we do use Target.coreDataModels
to integrate those. In the fixture, the data models only end up in the compile sources build phase:
Would you mind providing a sample that reproduces the issue?
I don't think we should allow those models to be valid source files over using the explicit property we have for these.
Thanks, I'll try to follow that then. The difference between my project and the PR is that I am adding those to a static framework, so I see the files both in the generated. bundle, and in the source build phase of the framework, but maybe it's fine, I'll try with that 👍 One thing I can't find is how to add xcmappingmodel files. Also in the fixture I can see there is one, but I can't see it referenced in the generated Xcode project. |
Let us know – if it doesn't work, we can change how core data models are integrated in static frameworks.
I am not too familiar with |
From what I can see, it should work in both sources and resources, I'll try to stick to the currently Tuist implemented way (resources) and see how it goes. |
Thanks, we can reopen this if it turns out having the xcmappingmodeld is a requirement :) |
I am migrating a big project to use Tuist and I'm looking at how to integrate xcdatamodeld and xcdatamodelmapping files. In the project I am migrating from, those files are all added in the Compile Source build phase and nothing in resources.
In Tuist:
Is there a reason why it's not allowed
This is why I'm updating the valid source extensions to include
xcdatamodeld
as well.