-
Notifications
You must be signed in to change notification settings - Fork 487
Description
- Objective C or Swift: Swift
- iOS version: 9.3.5
- Firebase SDK version: 3.4.0
- FirebaseUI version: 0.5.3
- CocoaPods Version: 1.1.0-rc1
- Xcode version: 8.0 GM
Step 3: Describe the problem:
I had some login code that would build in 0.5.2, but failed at runtime because defaultAuthUI() would always return nil. Now 0.5.3 won't build with a "Use of unresolved identifier 'FIRAuthUI'" error on the following function in AppDelegate.
Steps to reproduce:
- Try to compile code in Swift that uses FIRAuthUI. The code in my app is basically identical to the example project, and in fact, you can reproduce this error by trying to build the samples in this repo.
Observed Results:
- A build error on any line that attempts to use FIRAuthUI:
/Users/David/Documents/code/FirebaseUI-iOS/samples/swift/uidemo/AppDelegate.swift:35:8: Use of unresolved identifier 'FIRAuthUI'
Expected Results:
- I expected the code to build successfully. The same code will build when version 0.5.2 is used.
Relevant Code:
In the sample project in this repo:
| if FIRAuthUI.defaultAuthUI()?.handleOpenURL(url, sourceApplication: sourceApplication) ?? false { |
As in my code:
AppDelegate.swift
...
import Firebase
import FirebaseAuthUI
...
func application(app: UIApplication, openURL url: NSURL, options: [String: AnyObject]) -> Bool {
let sourceApplication = options[UIApplicationOpenURLOptionsSourceApplicationKey] as! String
if FIRAuthUI.defaultAuthUI()?.handleOpenURL(url, sourceApplication: sourceApplication ?? "") ?? false {
return true
}
// Any other URL handling here
return false
}