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

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

问题描述

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

我的应用的 Facebook 登录在设备上运行良好.但是,在 iOS 9 模拟器上,我得到:

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

并且登录不起作用.我见过 facebook 登录问题 - canOpenURL: failed for网址:fbauth2:///"- 错误:(null)" 但我有 FBSDKCoreKit 框架.我也看过 Facebook SDK 4.5 IOS 9 但它的答案没有解决我的问题.

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

解决方案

为什么我会看到类似 'canOpenURL: failed for URL: "fb...://' or ?

这样的控制台消息<块引用>

这是一个 Xcode 警告,指示 canOpenURL: 调用返回错误的.只要您配置了 LSApplicationQueriesSchemes如上所述,在您的 plist 中输入,您可以忽略此警告.

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:URL 失败:“fbauth2:///";- 错误:“(空)"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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