Skip to content
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

xcdatamodeld support #243

Closed
ralfebert opened this issue Feb 21, 2018 · 2 comments
Closed

xcdatamodeld support #243

ralfebert opened this issue Feb 21, 2018 · 2 comments

Comments

@ralfebert
Copy link

When a project with a Core Data model (.xcdatamodeld) is generated, the file is added as a resource and the data model is not editable in Xcode.
I generated an example project via File - new Single View Application project - with option 'use Core Data'.
I then re-generated the project via xcodegen, and fixed the project by removing and adding the data model manually. This is the resoluting change: https://github.com/ralfebert/xcodegen-coredataexample/commit/7c1664772b74e753c77e5cf1aa4ccf6be6215b43
Xcode seems to generate a special XCVersionGroup for these models.
Any chance to get these generated via xcodegen?

@yonaskolb
Copy link
Owner

Yep good catch, this should be possible. An easy change will be changing the default build phase to source instead of resource. I’ll look into whether the version group is necessary, but we can do that too

@yonaskolb
Copy link
Owner

Fixed with #249. It'll be in the next release 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants