2

I'm using Firebase in my Xcode project. And I am using cocoapods to install it.

In Podfile I've set platform to ios, '9.0'.

All works correctly in iOS 9.3.3 but when I test my app with iOS 10 , I get lots of errors and the Google Sign-in doesn't work. How can I solve this problem? Can I set multiple platforms like platform:ios, '9.0', '10.0' in my Podfile?

doobop
  • 4,465
  • 2
  • 28
  • 39
alessionossa
  • 923
  • 2
  • 15
  • 41

3 Answers3

4

Apple changed the way of working with keychain in iOS 10. To fix this you can simply go to Targets > Capabilities and enable keychain sharing (it enables access to keychain for your app).

1

openURL is Deprecated in iOS10, therefore you have to use the new one.

func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool {
    return GIDSignIn.sharedInstance().handle(url as URL!,sourceApplication: options[.sourceApplication] as? String, annotation: options[.annotation])
}
Flo Narr
  • 29
  • 5
0

At this moment, Firebase does not work on iOS 10, neither a device nor a simulator. This is a work in progress, so please stay tuned for updates. You can follow general discussion on Firebase at the firebase-talk group, and the Firebase Blog will have announcements as they occur.