iOS 9 Facebook登录模拟器-canOpenURL:网址失败:“fbauth2:///” - 错误:“(null)” [英] iOS 9 Facebook login simulator -canOpenURL: failed for URL: "fbauth2:///" - error: "(null)"

查看:469
本文介绍了iOS 9 Facebook登录模拟器-canOpenURL:网址失败:“fbauth2:///” - 错误:“(null)”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经更新到Xcode 7和最新的iOS SDK。我已经在我的应用程序的plist中添加了相应的条目:





我的应用程序的Facebook登录在设备上正常工作。然而,在iOS 9模拟器上,我得到:



-canOpenURL:URL失败:fbauth2:/// - 错误: (null)



登录不起作用。我看过 facebook登录问题 - canOpenURL:失败URL:fbauth2:/// - 错误:(null),但我有FBSDKCoreKit框架。我也看过 Facebook SDK 4.5 IOS 9 ,但答案不解决我的问题。



为什么我在模拟器上收到此错误,而不是在设备上,即使我已经在 https://developers.facebook.com/docs/ios/ios9

解决方案

为什么我会看到控制台消息,如canOpenURL:失败的URL:fb ...://'或?




这是一个Xcode警告,指示canOpenURL:调用返回
false。只要您配置了 LSApplicationQueriesSchemes
条目如上所述,您可以忽略此警告



I've updated to Xcode 7 and the latest iOS SDK. I've added the appropriate entries in my app's plist:

My app's Facebook login works fine on device. However, on iOS 9 simulator, I'm getting:

-canOpenURL: failed for URL: "fbauth2:///" - error: "(null)"

And login is not working. I've seen facebook login issue - canOpenURL: failed for URL: "fbauth2:///" - error: "(null)" but I have FBSDKCoreKit framework. I've also seen Facebook SDK 4.5 IOS 9 but it's answer doesn't solve my problem.

Why am I getting this error on simulator and not on device even though I've done the checklist at https://developers.facebook.com/docs/ios/ios9?

解决方案

Why do I see console messages like 'canOpenURL: failed for URL: "fb...://' or ?

This is an Xcode warning indicating the the canOpenURL: call returned false. As long as you have configured the LSApplicationQueriesSchemes entry in your plist as described above, you can ignore this warning.

这篇关于iOS 9 Facebook登录模拟器-canOpenURL:网址失败:“fbauth2:///” - 错误:“(null)”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆