Reputation: 9
I'm working on my first app. Xcode says there are no bugs or issues, but when I try to run the app I get a error message in AppDelegate.swift
that say
Thread 1: Signal Sigabt.
Here's my code:
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate { //This is where the error happens.
var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
}
func applicationWillResignActive(application: UIApplication) {
}
func applicationDidEnterBackground(application: UIApplication) {
}
func applicationWillEnterForeground(application: UIApplication) {
}
func applicationDidBecomeActive(application: UIApplication) {
}
func applicationWillTerminate(application: UIApplication) {
}
}
Upvotes: 0
Views: 91
Reputation: 9612
You should add an exception breakpoint to get more info about crash.
Steps
In the bottom-left corner of the breakpoints navigator, click the Add button.
Choose Add Exception Breakpoint from the menu.
In the configuration dialog that appears, choose the type of exception on which you want execution to stop from the Exception field pop-up menu.
For the Break field, choose the phase of the exception handling process at which you want program execution to stop.
(Optional) Add actions and configure the Options for the behavior you wish.
After those steps, build and run your project - and Xcode will stop execution at the crash reason line of code.
Upvotes: 1