small medium large xlarge

23 Dec 2008, 06:57
Peter Dalmaris (4 posts)


I have finished working on section 4.6, so now I have the controller connected to the Back button and the WebView.

When I execute the program in xCode (Build and Go), the application crashes. Below is what the debugger console reports:

This GDB was configured as “i386-apple-darwin”.tty /dev/ttys005 Program loaded. sharedlibrary apply-load-rules all run [Switching to process 42502 local thread 0x2d03] Running… 2008-12-23 17:39:36.757 simplebrowser2[42502:813] An uncaught exception was raised 2008-12-23 17:39:36.825 simplebrowser2[42502:813] * -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (WebView) 2008-12-23 17:39:36.846 simplebrowser2[42502:813] *** Terminating app due to uncaught exception ‘NSInvalidUnarchiveOperationException’, reason: ‘* -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (WebView)’ 2008-12-23 17:39:36.876 simplebrowser2[42502:813] Stack: ( 2417053963, 2517683771, 2417053419, 2417053482, 2467474223, 2467479565, 2467480713, 2467472768, 2467471093, 2502606577, 2467472768, 2467471093, 2502605896, 2467472768, 2467479565, 2467477641, 2467472768, 2467471093, 2502578167, 2467472768, 2467471093, 2502575645, 2502574056, 2502573099, 2502572905, 2502572056 ) kill quit

I’m searching for a solution, but got stuck… Any help is appreciated, thanks!

23 Dec 2008, 07:18
Peter Dalmaris (4 posts)

Aha, I found the solution here:

Go into /System/Library/Frameworks in Finder and drag WebKit.framework into your project (in the "Frameworks" group). It will show a dialog, the default settings should be fine, just hit OK."
Perhaps this should be included in the book, perhaps as a footnote?

23 Dec 2008, 13:03
Daniel H Steinberg (97 posts)

Hi Peter,

Actually this is in the book. I’ve even highlighted it as a call out because it’s such an easy mistake to make. Check out the Joe Asks in section 2.6 and you’ll find this there. If you don’t think this is a sufficient warning, please let me know.


You must be logged in to comment