当前位置: 动力学知识库 > 问答 > 编程问答 >

ios - NSException when using Firebase

问题描述:

I followed all the steps correctly to install Firebase to my iOS App and it still doesn't work. In the application method, I added FIRApp.configure() like so:

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

// Override point for customization after application launch.

FIRApp.configure()

return true

}

And I keep receiving NSException errors. Firebase seems to work on my Android Project, what's the deal with iOS?

网友答案:

I believe this is some sort of Swift 3 issue, because I encountered a similar problem. After looking over the internet, I believe that Firebase 3 hasn't updated to recent Swift Syntax located in Swift 3. Many other developers are having trouble with it as well. As an alternative, you could switch back from Xcode 8 and into 7, which would allow you to create your application which will work with current IOS, and when Firebase updates, it will be easy for you to migrate to Swift 3.

Hope this helps, Morgan Gallant

分享给朋友:
您可能感兴趣的文章:
随机阅读: