Automigrating store fails #267

Closed
auser opened this Issue Oct 1, 2012 · 6 comments

Comments

Projects
None yet
4 participants

auser commented Oct 1, 2012

On iOS 6

[MagicalRecord setupCoreDataStackWithAutoMigratingSqliteStoreNamed:@"Model.sqlite"]

Fails with the error:

[__NSCFConstantString count]: unrecognized selector sent to instance 0x213ac
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFConstantString count]: unrecognized selector sent to instance 0x213ac'

However, when I change it to

[MagicalRecord setupCoreDataStackWithStoreNamed:@"Model.sqlite"]

It works. Is this a bug or am I implementing it incorrectly?

Owner

casademora commented Oct 1, 2012

That seemed to fail for me as well today. I'll see if the auto migration options weren't changed for ios6 .,.

Saul Mora
@casademora

On Oct 1, 2012, at 1:14 AM, Ari notifications@github.com wrote:

On iOS 6

[MagicalRecord setupCoreDataStackWithAutoMigratingSqliteStoreNamed:@"Model.sqlite"]
Fails with the error:

[__NSCFConstantString count]: unrecognized selector sent to instance 0x213ac
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFConstantString count]: unrecognized selector sent to instance 0x213ac'
However, when I change it to

[MagicalRecord setupCoreDataStackWithStoreNamed:@"Model.sqlite"]
It works. Is this a bug or am I implementing it incorrectly?


Reply to this email directly or view it on GitHub.

diejmon commented Oct 1, 2012

I Have the same issue

diejmon commented Oct 1, 2012

It seems that the problem is in MR_autoMigrationOptions method.

Here it is the fixed version: https://gist.github.com/3810906

Owner

casademora commented Oct 1, 2012

Thanks, I've pulled in your code to help resolve this issue. Try it out on master.

On Oct 1, 2012, at 4:49 AM, Alexander Belyavskiy notifications@github.com wrote:

It seems that the problem is in MR_autoMigrationOptions method.

Here it is the fixed version: https://gist.github.com/3810906


Reply to this email directly or view it on GitHub.

Contributor

blackgold9 commented Oct 1, 2012

Good find! Anyone know a way to test that in an automated way?

Sent from my mobile

On Oct 1, 2012, at 3:49 AM, Alexander Belyavskiy notifications@github.com
wrote:

It seems that the problem is in MR_autoMigrationOptions method.

Here it is the fixed version: https://gist.github.com/3810906


Reply to this email directly or view it on
GitHubhttps://github.com/magicalpanda/MagicalRecord/issues/267#issuecomment-9027664.

Contributor

blackgold9 commented Oct 1, 2012

Fixed

@blackgold9 blackgold9 closed this Oct 1, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment