import UIKit
import CoreData
import Firebase
import FBSDKCoreKit
import FirebaseMessaging
import UserNotifications我使用Cocoapods安装了Firebase,并在Xcode8beta4中实现了Facebook登录。应用程序和Facebook登录在xcode8中运行良好。在我更新到Xcode8.1测试版后,Facebook登录像往常一样被not being redirecting automatically到登录页面。
根据日志:
FIRAnalytics/WARNING> Implementation of application:openURL:sourceApplication:annotation: not found. Please add the handler into your App Delegate. Class: pushlite.AppDelegate我还找出了没有调用openURL的应用程序函数,如下所示:
func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: AnyObject) -> Bool {
print("Handler Called")
let handled = FBSDKApplicationDelegate.sharedInstance().application(application, open: url, sourceApplication: sourceApplication, annotation: annotation)
// Add any custom logic here.
return handled
}有人能给我指路吗?提前谢谢。
发布于 2016-10-05 10:45:47
我刚刚解决了iOS 10.1的这个问题,我进入Facebook的iOS指南和,使用Facebook的最新应用程序openURL和rebuild。它又像魅力一样工作了。我不知道它是如何解决的,但希望它能帮助iOS 10.1中的其他人使用Facebooklogin。
https://stackoverflow.com/questions/39864446
复制相似问题