信号sigabrt swift2 app crach

时间:2016-05-28 23:05:56

标签: ios swift

我的应用程序运行但是当我测试它时,我得到程序接收信号“sigabrt”在主要上。请帮忙。这是我的AppDelegate的自定义部分:

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {

        FBSDKApplicationDelegate.sharedInstance().application(application, didFinishLaunchingWithOptions: launchOptions )
        // Override point for customization after application launch.

        return true
    }
}

image

1 个答案:

答案 0 :(得分:1)

最有可能的是,你的插座不正确。这意味着您的故事板中的视图认为它与您的代码相关联,但事实并非如此。卸下插座然后重新创建它。有关如何修复插座的更多信息,请查看此this resource