我已经更新到 Xcode 7 和最新的 iOS SDK。我在我的应用程序的 plist 中添加了适当的条目:
我的应用程序的 Facebook 登录在设备上运行良好。但是,在 iOS 9 模拟器上,我得到:
-canOpenURL:URL 失败:“fbauth2:///”- 错误:“(null)”
并且登录无效。我看过facebook login issue - canOpenURL: failed for URL: "fbauth2:///" - error: "(null)"但我有 FBSDKCoreKit 框架。我也看过 Facebook SDK 4.5 IOS 9但它的答案并没有解决我的问题。
即使我已经在 https://developers.facebook.com/docs/ios/ios9 完成检查 list ,为什么我在模拟器上而不是在设备上收到此错误? ?
最佳答案
为什么我会看到控制台消息,例如“canOpenURL:URL 失败:“fb...://”或?
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 : failed for URL: "fbauth2:///" - error: "(null)",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32676334/