• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: I've Got Those NSKeyedUnarchiver Blues!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: I've Got Those NSKeyedUnarchiver Blues!
      • From: Stuart Rogers <email@hidden>
References: 
 >I've Got Those NSKeyedUnarchiver Blues! (From: Stuart Rogers <email@hidden>)

  • Prev by Date: Re: I've Got Those NSKeyedUnarchiver Blues!
  • Next by Date: Why would a working -[NSInvocation invoke] call NSBeep() ?
  • Previous by thread: I've Got Those NSKeyedUnarchiver Blues!
  • Next by thread: Re: I've Got Those NSKeyedUnarchiver Blues!
  • Index(es):
    • Date
    • Thread