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

CoreData model versioning configuration #362

Closed
rpassis opened this issue Jul 29, 2018 · 7 comments
Closed

CoreData model versioning configuration #362

rpassis opened this issue Jul 29, 2018 · 7 comments

Comments

@rpassis
Copy link
Contributor

rpassis commented Jul 29, 2018

Hi all,

Just wondering if it is possible to select a versioned CoreData model "current version" option using XcodeGen? I had a look at the documentation but haven't been able to find it.

Thanks for developing such a great tool!

Rog

@yonaskolb
Copy link
Owner

Hi @rpassis, there is currently no way to manually select a core data model version, however some work was done recently to automatically select the newest one by sorting them #341
It will be in the next release. Would that solve your issue?

@rpassis
Copy link
Contributor Author

rpassis commented Jul 29, 2018

Hey @yonaskolb thanks for the quick response! I was just having a look at that PR. I'll build from master to test it and update here but it looks like that's likely to do the trick!

FWIW the filename/path fix seems a bit fragile and a possible alternative would be to check if there is a .xccurrentversion file inside a versioned model, and set the version based on that. Here's a related issue that was tackled by Xcodeproj CocoaPods/Xcodeproj#81

@rpassis
Copy link
Contributor Author

rpassis commented Jul 29, 2018

Yup that file sorting change has fixed the issue, thanks again!

@rpassis rpassis closed this as completed Jul 29, 2018
@yonaskolb
Copy link
Owner

Great! I'll reopen this for tracking the proper fix, if anyone wants to work on it

@rpassis
Copy link
Contributor Author

rpassis commented Jul 29, 2018

I'll see if I can tackle this one myself, watch this space!

@rpassis rpassis reopened this Jul 29, 2018
@yonaskolb
Copy link
Owner

Fantastic! 😄👍

@brentleyjones
Copy link
Collaborator

Fixed by #364.

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

3 participants