Xcode application won't launch?

Discussion in 'Mac Programming' started by Intelligent, Jun 17, 2014.

  1. Intelligent macrumors 6502a

    Intelligent

    Joined:
    Aug 7, 2013
    #1
    I get a "build succeeded" but the app is just bouncing in the dock and this message under the output section

    Code:
    2014-06-17 15:35:44.606 ASRWriter[5426:303] An uncaught exception was raised
    2014-06-17 15:35:44.606 ASRWriter[5426:303] *** -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (WebView)
    2014-06-17 15:35:44.606 ASRWriter[5426:303] (
    	0   CoreFoundation                      0x00007fff8e37825c __exceptionPreprocess + 172
    	1   libobjc.A.dylib                     0x00007fff91736e75 objc_exception_throw + 43
    	2   CoreFoundation                      0x00007fff8e37810c +[NSException raise:format:] + 204
    	3   Foundation                          0x00007fff8c754dd9 _decodeObjectBinary + 2349
    	4   Foundation                          0x00007fff8c755f9f -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1774
    	5   Foundation                          0x00007fff8c75619b -[NSArray(NSArray) initWithCoder:] + 202
    	6   Foundation                          0x00007fff8c754e92 _decodeObjectBinary + 2534
    	7   Foundation                          0x00007fff8c75434d _decodeObject + 288
    	8   AppKit                              0x00007fff95ec15cc -[NSView initWithCoder:] + 1949
    	9   Foundation                          0x00007fff8c754e92 _decodeObjectBinary + 2534
    	10  Foundation                          0x00007fff8c75434d _decodeObject + 288
    	11  AppKit                              0x00007fff95ec7458 -[NSWindowTemplate initWithCoder:] + 1043
    	12  Foundation                          0x00007fff8c754e92 _decodeObjectBinary + 2534
    	13  Foundation                          0x00007fff8c755f9f -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1774
    	14  Foundation                          0x00007fff8c7555d7 -[NSSet(NSSet) initWithCoder:] + 203
    	15  Foundation                          0x00007fff8c754e92 _decodeObjectBinary + 2534
    	16  Foundation                          0x00007fff8c75434d _decodeObject + 288
    	17  AppKit                              0x00007fff95e99770 -[NSIBObjectData initWithCoder:] + 155
    	18  Foundation                          0x00007fff8c754e92 _decodeObjectBinary + 2534
    	19  Foundation                          0x00007fff8c75434d _decodeObject + 288
    	20  AppKit                              0x00007fff95e9958f loadNib + 232
    	21  AppKit                              0x00007fff95e98b8c +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 288
    	22  AppKit                              0x00007fff95e9897c -[NSBundle(NSNibLoading) loadNibNamed:owner:topLevelObjects:] + 197
    	23  AppKit                              0x00007fff95e9876b +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 357
    	24  AppKit                              0x00007fff95e945b7 NSApplicationMain + 448
    	25  ASRWriter                    0x0000000100001612 main + 34
    	26  libdyld.dylib                       0x00007fff8d9f75fd start + 1
    )
    2014-06-17 15:35:44.610 ASRWriter[5426:303] *** Terminating app due to uncaught exception 'NSInvalidUnarchiveOperationException', reason: '*** -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (WebView)'
    *** First throw call stack:
    (
    	0   CoreFoundation                      0x00007fff8e37825c __exceptionPreprocess + 172
    	1   libobjc.A.dylib                     0x00007fff91736e75 objc_exception_throw + 43
    	2   CoreFoundation                      0x00007fff8e37810c +[NSException raise:format:] + 204
    	3   Foundation                          0x00007fff8c754dd9 _decodeObjectBinary + 2349
    	4   Foundation                          0x00007fff8c755f9f -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1774
    	5   Foundation                          0x00007fff8c75619b -[NSArray(NSArray) initWithCoder:] + 202
    	6   Foundation                          0x00007fff8c754e92 _decodeObjectBinary + 2534
    	7   Foundation                          0x00007fff8c75434d _decodeObject + 288
    	8   AppKit                              0x00007fff95ec15cc -[NSView initWithCoder:] + 1949
    	9   Foundation                          0x00007fff8c754e92 _decodeObjectBinary + 2534
    	10  Foundation                          0x00007fff8c75434d _decodeObject + 288
    	11  AppKit                              0x00007fff95ec7458 -[NSWindowTemplate initWithCoder:] + 1043
    	12  Foundation                          0x00007fff8c754e92 _decodeObjectBinary + 2534
    	13  Foundation                          0x00007fff8c755f9f -[NSKeyedUnarchiver _decodeArrayOfObjectsForKey:] + 1774
    	14  Foundation                          0x00007fff8c7555d7 -[NSSet(NSSet) initWithCoder:] + 203
    	15  Foundation                          0x00007fff8c754e92 _decodeObjectBinary + 2534
    	16  Foundation                          0x00007fff8c75434d _decodeObject + 288
    	17  AppKit                              0x00007fff95e99770 -[NSIBObjectData initWithCoder:] + 155
    	18  Foundation                          0x00007fff8c754e92 _decodeObjectBinary + 2534
    	19  Foundation                          0x00007fff8c75434d _decodeObject + 288
    	20  AppKit                              0x00007fff95e9958f loadNib + 232
    	21  AppKit                              0x00007fff95e98b8c +[NSBundle(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 288
    	22  AppKit                              0x00007fff95e9897c -[NSBundle(NSNibLoading) loadNibNamed:owner:topLevelObjects:] + 197
    	23  AppKit                              0x00007fff95e9876b +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 357
    	24  AppKit                              0x00007fff95e945b7 NSApplicationMain + 448
    	25  ASRWriter                    0x0000000100001612 main + 34
    	26  libdyld.dylib                       0x00007fff8d9f75fd start + 1
    )
    libc++abi.dylib: terminating with uncaught exception of type NSException
    (lldb) 
    
     
  2. xStep, Jun 17, 2014
    Last edited: Jun 17, 2014

    xStep macrumors 68000

    Joined:
    Jan 28, 2003
    Location:
    Less lost in L.A.
    #2
    I'm confused. Your subject title says Xcode is not starting, but your text says you get "build succeeded" which would indicate Xcode is running.

    Please clarify.

    The error I'm seeing is that some app is trying to read an archived object but it's falling down.
     
  3. ArtOfWarfare macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #3
    Here's the problem from your log:

    Code:
    -[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class (WebView)
    Where in your code did you type out anything about NSKeyedUnarchiver? I'm going to guess you didn't; instead, I'm going to guess that this is getting used automagically for you to load your UI from a xib files.

    That xib file says that your app needs to load a WebView class and the runtime is exploding saying it doesn't know what a WebView is. Likely because there's a framework you need to have your project linked against, which you neglected (I think the framework in question will be called... WebKit).

    Those are my guesses, anyways. Let us know if you need more help.
     

Share This Page