-canOpenURL: failed for URL: “fbauth2:/” - error: “This app is not allowed to query for scheme fbauth2” (OSStatus error -10814.)

∥☆過路亽.° 提交于 2019-12-10 14:17:13

问题


This error message when I try to login:_

-canOpenURL: failed for URL: "fbauth2:/" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"

I have macOS High Sierra 10.13.6. My Xcode version is 9.4.1.

SDKs iOS 10.2, Simulator

I have tried mothod but doesn't help: https://developers.facebook.com/docs/ios/ios9

I also did try to play around LSApplicationQueriesSchemes but not success as well.


回答1:


The same issue I resolved it by adding this in Info.plist

<key>LSApplicationQueriesSchemes</key>
<array>
        <string>fbauth2</string>
</array>

You need to set it according to your SDK version.

More detail refer this Document.



来源:https://stackoverflow.com/questions/51958465/canopenurl-failed-for-url-fbauth2-error-this-app-is-not-allowed-to-qu

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!