mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
3.0.2 migration crash #124
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @laeroah on GitHub (Feb 8, 2017).
Some weird crash happening with version 3.0.2. The same code works fine in 3.0.1
With 3.0.2, the app starts to crash at this line:
_dataStack = DataStack(modelName: "AppFriendsCore", bundle: bundle, migrationChain: nil)I also tried to explicitly specify the migration chain here, but it still crashes.
The same code works fine in 3.0.0 and 3.0.1
@JohnEstropia commented on GitHub (Feb 8, 2017):
@laeroah Can you add an Exception breakpoint and print the
messageargument when it crashes?@laeroah commented on GitHub (Feb 8, 2017):
@JohnEstropia the message is
"Invalid migration chain passed to the DataStack. Check that the model versions' order is correct and that no repetitions or ambiguities exist."
@JohnEstropia commented on GitHub (Feb 8, 2017):
Hmm there isn't any change with migrations between 3.0.1 and 3.0.2.
I can't reproduce it on my side either.
Can you try quitting Xcode then deleting the derived data?
@laeroah commented on GitHub (Feb 8, 2017):
@JohnEstropia ok, will give it a try. thanks
@laeroah commented on GitHub (Feb 8, 2017):
I tried cleaning and restarting Xcode, but still crashes. The same crash happens in two of my apps after they update Corestore to 3.0.2. I don't think it's crashing due to the migration anymore, it's more like a memory issue.



@JohnEstropia commented on GitHub (Feb 9, 2017):
@laeroah Okay thanks. I'll rollback the update today, sorry about that. In the mean time please use the 3.0.1 release.
@JohnEstropia commented on GitHub (Feb 9, 2017):
@laeroah Can you share these info?
@laeroah commented on GitHub (Feb 9, 2017):
I am using cocoapod
Device: iPhone7, 10.2.1
Simulator: iPhone7, 10.2
Xcode: 8:2.1
Swift: 3.0.1
@JohnEstropia commented on GitHub (Feb 9, 2017):
thanks!
@laeroah commented on GitHub (Feb 9, 2017):
@JohnEstropia thank you!
@laeroah commented on GitHub (Feb 13, 2017):
@JohnEstropia sry, just want to check on this. Is it fixed on 3.0.2?
@JohnEstropia commented on GitHub (Feb 13, 2017):
I reverted the 3.0.2 changes and released it as 3.0.3 so please update to the latest version. So far I haven't reproduced the problem on my dev environment yet so I'll probably defer that update until I successfully find the cause.
@laeroah commented on GitHub (Feb 14, 2017):
Thank you! 3.0.3 works for me.