I'm getting an exception during a core data migration -
Here's the relevant part of the stack trace:
The new model simply has a few extra fields, both transient and non-transient, in existing entities and a couple of new entities. I have a mapping model in place, and now this exception has appeared (the migration has been successful a few times now).
Any ideas as to how I can debug this? I've been through the mapping model and can't see anything wrong, there are no literal values and I've not made any changes. Google finds nothing relevant about this exception.
Code:
-[NSSymbolicExpression length]: unrecognized selector sent to instance
Here's the relevant part of the stack trace:
Code:
Exception at stack trace: (
0 CoreFoundation 0x00007fff850807b4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x00007fff824190f3 objc_exception_throw + 45
2 CoreFoundation 0x00007fff850da110 +[NSObject(NSObject) doesNotRecognizeSelector:] + 0
3 CoreFoundation 0x00007fff8505291f ___forwarding___ + 751
4 CoreFoundation 0x00007fff8504ea68 _CF_forwarding_prep_0 + 232
5 Foundation 0x00007fff86b3dd23 -[NSObject(NSKeyValueCoding) valueForKeyPath:] + 57
6 Foundation 0x00007fff86ba0902 -[NSFunctionExpression expressionValueWithObject:context:] + 530
7 Foundation 0x00007fff86ba088d -[NSFunctionExpression expressionValueWithObject:context:] + 413
8 CoreData 0x00007fff813b8fc8 -[NSEntityMigrationPolicy createRelationshipsForDestinationInstance:entityMapping:manager:error:] + 1160
9 CoreData 0x00007fff813bcce7 -[NSMigrationManager(InternalMethods) _doSecondPassForMapping:error:] + 551
10 CoreData 0x00007fff813bbb70 -[NSMigrationManager migrateStoreFromURL:type:options:withMappingModel:toDestinationURL:destinationType:destinationOptions:error:] + 2224
11 CoreData 0x00007fff813b6ab3 -[NSStoreMigrationPolicy(InternalMethods) migrateStoreAtURL:toURL:storeType:options:withManager:error:] + 147
12 CoreData 0x00007fff813b68ca -[NSStoreMigrationPolicy migrateStoreAtURL:withManager:metadata:options:error:] + 106
13 CoreData 0x00007fff813b77cc -[NSStoreMigrationPolicy(InternalMethods) _gatherDataAndPerformMigration:] + 1116
14 CoreData 0x00007fff812f863d -[NSPersistentStoreCoordinator addPersistentStoreWithType:configuration:URL:options:error:] + 1997
15 AppKit 0x00007fff841c3101 -[NSPersistentDocument configurePersistentStoreCoordinatorForURL:ofType:modelConfiguration:storeOptions:error:] + 255
16 Beadia 0x0000000100004a6d -[BeadiaDocument configurePersistentStoreCoordinatorForURL:ofType:modelConfiguration:storeOptions:error:] + 525
The new model simply has a few extra fields, both transient and non-transient, in existing entities and a couple of new entities. I have a mapping model in place, and now this exception has appeared (the migration has been successful a few times now).
Any ideas as to how I can debug this? I've been through the mapping model and can't see anything wrong, there are no literal values and I've not made any changes. Google finds nothing relevant about this exception.