我开始了一个空白的Xcode项目,我所做的就是通过Cocoapods添加Firebase框架并在Appdelegate和viewcontroller中导入.当我将FIRApp.configure()添加到didFinishLoadingWithOptions时,我得到了这个错误.如果我删除该行但仍导入框架,则运行时没有错误.这发生在一个空白项目中,故事板中没有任何内容,也没有viewcontroller.swift.
在控制台中它说libc ++ abi.dylib:以NSException类型的未捕获异常终止(11db)
Xcode 8.2,swift 3
import UIKit
import Firebase
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
FIRApp.configure()
return true
}
func applicationWillResignActive(_ application: UIApplication) {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone …Run Code Online (Sandbox Code Playgroud) 我是一个新手开发者,我正在尝试从URL下载并显示图像并将其显示在UIImage视图中.我尝试了多种方法,使用以前问过的问题和网页信息,但它不断出现多个错误.