I am working on an Objective-C codebase for an iPad project using iOS 6.
After I reorganized the class name 'ClassA' into 'ClassB', I found the following test failure:
NSData *encodedObject = [NSKeyedArchiver archivedDataWithRootObject:objectOfClassB]; ServiceOrderOld *decodedObject = [NSKeyedUnarchiver unarchiveObjectWithData:encodedObject]; [[[decodedObject class] should] equal:[objectOfClassB class]];
The error message I get reads: "[FAILED], expected to equal ClassB, get ClassB"
What can cause this strange behavior? Any debugging tips?
source share