Re: I've Got Those NSKeyedUnarchiver Blues!
Re: I've Got Those NSKeyedUnarchiver Blues!
- Subject: Re: I've Got Those NSKeyedUnarchiver Blues!
- From: Jens Alfke <email@hidden>
- Date: Sun, 04 Dec 2011 15:09:27 -0800
On Dec 4, 2011, at 11:17 AM, Stuart Rogers wrote:
> *** -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (SplitsTestSet)
>
> I really don't understand why this is happening. I'm convinced it's
> not a problem with library linking, as these apps have no problem
> instantiating various objects sourced from the library. (Almost all
> my Googling about this exception seem to be down to bad linking.)
My suspicion is that the class SplitsTestSet is getting dead-stripped from the Trainer app. Try adding the line “[SplitsTestSet class]” somewhere in the code, just to force a reference to the class-name so it won’t get stripped.
Also try looking at the binary using the ‘nm’ tool to check whether the class symbols exist in the app.
—Jens_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden