iPhone App Dev Error Help

Discussion in 'iOS Programming' started by ShowaDee, May 1, 2014.

  1. ShowaDee, May 1, 2014
    Last edited by a moderator: May 1, 2014

    ShowaDee macrumors newbie

    Joined:
    May 1, 2014
    #1
    Everytime I run my program I always seem to get the same error - libc++abi.dylib: terminating with uncaught exception of type NSException
    (lldb)


    I deleted XCode and reinstalled it however I have the same issue. My project is blank and there are no outlets from my ViewController. Here is the full code:
    Code:
    2014-05-01 16:54:59.438 Emotion[2065:60b] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<ViewController 0x8d89db0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key Image.'
    *** First throw call stack:
    (
    	0   CoreFoundation                      0x017ff1e4 __exceptionPreprocess + 180
    	1   libobjc.A.dylib                     0x0156a8e5 objc_exception_throw + 44
    	2   CoreFoundation                      0x0188efe1 -[NSException raise] + 17
    	3   Foundation                          0x0122ad9e -[NSObject(NSKeyValueCoding) setValue:forUndefinedKey:] + 282
    	4   Foundation                          0x011971d7 _NSSetUsingKeyValueSetter + 88
    	5   Foundation                          0x01196731 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 267
    	6   Foundation                          0x011f8b0a -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 412
    	7   UIKit                               0x004e11f4 -[UIRuntimeOutletConnection connect] + 106
    	8   libobjc.A.dylib                     0x0157c7de -[NSObject performSelector:] + 62
    	9   CoreFoundation                      0x017fa76a -[NSArray makeObjectsPerformSelector:] + 314
    	10  UIKit                               0x004dfd4d -[UINib instantiateWithOwner:options:] + 1417
    	11  UIKit                               0x003486f5 -[UIViewController _loadViewFromNibNamed:bundle:] + 280
    	12  UIKit                               0x00348e9d -[UIViewController loadView] + 302
    	13  UIKit                               0x003490d3 -[UIViewController loadViewIfRequired] + 78
    	14  UIKit                               0x003495d9 -[UIViewController view] + 35
    	15  UIKit                               0x00269267 -[UIWindow addRootViewControllerViewIfPossible] + 66
    	16  UIKit                               0x002695ef -[UIWindow _setHidden:forced:] + 312
    	17  UIKit                               0x0026986b -[UIWindow _orderFrontWithoutMakingKey] + 49
    	18  UIKit                               0x002743c8 -[UIWindow makeKeyAndVisible] + 65
    	19  UIKit                               0x00224bc0 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 2097
    	20  UIKit                               0x00229667 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 824
    	21  UIKit                               0x0023df92 -[UIApplication handleEvent:withNewEvent:] + 3517
    	22  UIKit                               0x0023e555 -[UIApplication sendEvent:] + 85
    	23  UIKit                               0x0022b250 _UIApplicationHandleEvent + 683
    	24  GraphicsServices                    0x037e0f02 _PurpleEventCallback + 776
    	25  GraphicsServices                    0x037e0a0d PurpleEventCallback + 46
    	26  CoreFoundation                      0x0177aca5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
    	27  CoreFoundation                      0x0177a9db __CFRunLoopDoSource1 + 523
    	28  CoreFoundation                      0x017a568c __CFRunLoopRun + 2156
    	29  CoreFoundation                      0x017a49d3 CFRunLoopRunSpecific + 467
    	30  CoreFoundation                      0x017a47eb CFRunLoopRunInMode + 123
    	31  UIKit                               0x00228d9c -[UIApplication _run] + 840
    	32  UIKit                               0x0022af9b UIApplicationMain + 1225
    	33  Emotion                             0x0000217d main + 141
    	34  libdyld.dylib                       0x01e32701 start + 1
    	35  ???                                 0x00000001 0x0 + 1
    )
    libc++abi.dylib: terminating with uncaught exception of type NSException
    (lldb) 
     
  2. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #2
    There is a problem with the nib or storyboard.

    When the nib is being loaded the system is trying to connect an outlet named Image but it doesn't exist on the ViewController so it throws this runtime exception and your app is killed.

    At one time you had an outlet named Image. You need to find the reference to this IBOutlet that doesn't exist in the nib and fix it.
     
  3. dotri84 macrumors newbie

    Joined:
    Jun 27, 2010
    #3
    Outlet name is not connected

    It happen when you copy xib file from other project and use in your project. You can to right click on File's Owner to see any yellow warning. It is a missing connection.

    Delete it and reconnect it to element on UI.
     
  4. ShowaDee thread starter macrumors newbie

    Joined:
    May 1, 2014
    #4
    The problem is the storyboard is blank and there is no outlet called image.


    Again this is a fresh project and there has been no use of any other xib files.
     
  5. Crichton333 macrumors 6502

    Crichton333

    Joined:
    May 4, 2014
    #5


    The problem is in the version of the Operating System, this happens after Mavericks upgrade.

    There are two implementations of the standard C++ library available on OS X: libstdc++ and libc++. They are not binary compatible and libMLi3 requires libstdc++.

    On 10.8 and earlier libstdc++ is chosen by default, on 10.9 libc++ is chosen by default. To ensure compatibility with libMLi3, we need to choose libstdc++ manually.

    To do this, add -stdlib=libstdc++ to the linking command.
     

Share This Page