Help! Sigbart!

Discussion in 'iOS Programming' started by lJoct03, Oct 3, 2011.

  1. lJoct03 macrumors member

    Joined:
    Nov 18, 2009
    #1
    GNU gdb 6.3.50-20050815 (Apple version gdb-1705) (Fri Jul 1 10:53:44 UTC 2011)
    Copyright 2004 Free Software Foundation, Inc.
    GDB is free software, covered by the GNU General Public License, and you are
    welcome to change it and/or distribute copies of it under certain conditions.
    Type "show copying" to see the conditions.
    There is absolutely no warranty for GDB. Type "show warranty" for details.
    This GDB was configured as "--host=x86_64-apple-darwin --target=arm-apple-darwin".tty /dev/ttys000
    target remote-mobile /tmp/.XcodeGDBRemote-1171-60
    Switching to remote-macosx protocol
    mem 0x1000 0x3fffffff cache
    mem 0x40000000 0xffffffff none
    mem 0x00000000 0x0fff none
    [Switching to process 11779 thread 0x0]
    [Switching to process 11779 thread 0x0]
    sharedlibrary apply-load-rules all
    warning: Unable to read symbols for /Library/MobileSubstrate/MobileSubstrate.dylib (file not found).
    warning: No copy of MobileSubstrate.dylib found locally, reading from memory on remote device. This may slow down the debug session.
    2011-10-03 23:18:21.234 The Edge[1117:207] MS:Notice: Installing: J95UDW3KX3. [The Edge] (478.52)
    2011-10-03 23:18:21.460 The Edge[1117:207] MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/Activator.dylib
    warning: Unable to read symbols for /Library/MobileSubstrate/DynamicLibraries/Activator.dylib (file not found).
    warning: No copy of Activator.dylib found locally, reading from memory on remote device. This may slow down the debug session.
    2011-10-03 23:18:23.743 The Edge[1117:207] MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/Backgrounder.dylib
    warning: Unable to read symbols for /Library/MobileSubstrate/DynamicLibraries/Backgrounder.dylib (file not found).
    warning: No copy of Backgrounder.dylib found locally, reading from memory on remote device. This may slow down the debug session.
    warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.1.3/Symbols/usr/lib/libsubstrate.dylib (file not found).
    warning: No copy of libsubstrate.dylib found locally, reading from memory on remote device. This may slow down the debug session.
    2011-10-03 23:18:24.458 The Edge[1117:207] MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/SpringboardTweaks.dylib
    warning: Unable to read symbols for /Library/MobileSubstrate/DynamicLibraries/SpringboardTweaks.dylib (file not found).
    warning: No copy of SpringboardTweaks.dylib found locally, reading from memory on remote device. This may slow down the debug session.
    2011-10-03 23:18:24.619 The Edge[1117:207] MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/wallpaper.dylib
    warning: Unable to read symbols for /Library/MobileSubstrate/DynamicLibraries/wallpaper.dylib (file not found).
    warning: No copy of wallpaper.dylib found locally, reading from memory on remote device. This may slow down the debug session.
    2011-10-03 23:18:28.530 The Edge[1117:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIWindow 0x10c940> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key rootViewController.'
    2011-10-03 23:18:28.545 The Edge[1117:207] Stack: (
    843631901,
    849079828,
    843211061,
    814875997,
    814700751,
    814697703,
    857960868,
    814697541,
    857960668,
    843396195,
    843387051,
    857897508,
    857896288,
    857435144,
    347480,
    857434248,
    857767424,
    857765436,
    857763988,
    875472868,
    843380011,
    843377695,
    857431048,
    857424432,
    11749,
    11672
    )
    terminate called after throwing an instance of 'NSException'
    (gdb)
     
  2. chown33 macrumors 604

    Joined:
    Aug 9, 2009
    #2
    You have a UIWindow.
    You're using key value coding somehow.
    The key is rootViewController.
    The class UIWindow doesn't know how to handle this key.
    As a result, it throws an NSUnknownKeyException.
    You're not catching this exception,
    so it terminates your app.

    Just a theory.
     
  3. jnoxx macrumors 65816

    jnoxx

    Joined:
    Dec 29, 2010
    Location:
    Aartselaar // Antwerp // Belgium
    #3
    It's alot easier, it's just a IBOutlet that's still in his NIB (probably his MainWindow). Which can't cope with this outlet, since it doesn't own it anymore, just right click the App Delegate there, and remove the rootviewCntroller outlet.
     
  4. lJoct03, Oct 5, 2011
    Last edited by a moderator: Oct 6, 2011

    lJoct03 thread starter macrumors member

    Joined:
    Nov 18, 2009
    #4
    WHAT DO I DO?!

    Code:
    //
    //  main.m
    //  The Edge
    //
    //  Created by Jordan Lewis on 9/27/11.
    //  Copyright 2011 Edgemont Jr./Sr. High School. All rights reserved.
    //
    
    #import <UIKit/UIKit.h>
    
    int main(int argc, char *argv[])
    {
        NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
        int retVal = UIApplicationMain(argc, argv, nil, nil);                    [B]<--Thread 1: Program received signal: "SIGBART".[/B]
        [pool release];
        return retVal;
    }
     
  5. jiminaus macrumors 65816

    jiminaus

    Joined:
    Dec 16, 2010
    Location:
    Sydney
    #5
    In MainMenu.xib, do you have a rootViewController connection to your NSWindow?
     
  6. jnoxx macrumors 65816

    jnoxx

    Joined:
    Dec 29, 2010
    Location:
    Aartselaar // Antwerp // Belgium
    #6
    DONT CAPSLOCK?
    It's totally lame to go use Capslock, when we EXACTLY told you what to do, but you still couldn't bother of even trying, and yeah, i'm making this a rant, because this kind of "flaming", of HALP and ME NO COMPRENDE happens back at iphoneDevSDK, here you get serious answers, if you are prepared to do serious business..
     
  7. lJoct03, Oct 6, 2011
    Last edited by a moderator: Oct 6, 2011

    lJoct03 thread starter macrumors member

    Joined:
    Nov 18, 2009
    #7
    Okay.
    This is the error now:


    Code:
    #import "The_EdgeAppDelegate.h"
    
    @implementation The_EdgeAppDelegate
    
    @synthesize window = _window;
    @synthesize tabBarController = _tabBarController;
    
    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
        // Override point for customization after application launch.
        // Add the tab bar controller's current view as a subview of the window
        self.window.rootViewController = self.tabBarController; [B]<---- Thread 1: Program received signal: "SIGABRT".[/B]
        [self.window makeKeyAndVisible];
        return YES;
    }
     
  8. jnoxx macrumors 65816

    jnoxx

    Joined:
    Dec 29, 2010
    Location:
    Aartselaar // Antwerp // Belgium
    #8
    SIGABRT's, doesn't allways mean they are on that line, the thing is, you're MainWindow is framed up all wrong in your XIB. But you're too lazy to grab a book, and expect us to magicly solve it for you, but with an attitude like that it ain't gonna cut it.
     
  9. jiminaus macrumors 65816

    jiminaus

    Joined:
    Dec 16, 2010
    Location:
    Sydney
    #9
    What version of iOS are you running when this happens?
     
  10. lJoct03 thread starter macrumors member

    Joined:
    Nov 18, 2009
    #10
    Well my iPod touch 3.1.3.
    I am getting an iPad tomorrow and will try to put it on it.
    Do you think it will work then?

    Thanks for all the help.

    ----------

    Sorry if you think there is an attitude.
    i assure you this is not.
    I don't know programing all that well and i'm just trying to get this to work.
    If you know what to do, the help would be greatly appreciated.
     
  11. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #11
    The problem most likely is that rootViewController is a property that was added in iOS 4.0 so you can't use that outlet on 3.1.3.
     

Share This Page