Julian
Julian

Reputation: 75

Thread 1: signal SIGABRT - AppDelegate.h

//
//  main.m
//  Journey
//
//  Created by Julian Buscema on 2014-07-13.
//  Copyright (c) 2014 Julian Buscema. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "AppDelegate.h"

int main(int argc, char * argv[])
{
    @autoreleasepool {
        return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
    }
}

When I try running my application, my main.m opens up and the "return UIApplicationMain...." line is highlighted in green saying thread 1: signal SIGABRT. I googled it and it says that it has to do with my AppDelegate.h file but which part of it?

Here it is:

//
//  AppDelegate.h
//  Journey
//
//  Created by Julian Buscema on 2014-07-13.
//  Copyright (c) 2014 Julian Buscema. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;

@end

Upvotes: 3

Views: 4766

Answers (1)

Yurkevich
Yurkevich

Reputation: 4517

Your error says this class is not key value coding-compliant for the key username.

Something is not right with element named username. Did you create outlets from Storyboard to your ViewController? If you you did, are you renamed property in ViewController?

Try right clicking on UITextField and check outlets. Empty white circle means your outlet is broken, it must be white.

Upvotes: 2

Related Questions