Info.plist中缺少iOS 9"fbauth2"

nik*_*ila 146 objective-c ios

FBSDKLog: fbauth2 is missing from your Info.plist under LSApplicationQueriesSchemes and is required for iOS 9.0
Run Code Online (Sandbox Code Playgroud)

知道这是什么吗?我把它添加到我的plist中但是没有用.

Kae*_*aey 346

您可以在为iOS 9构建应用程序时继续使用URL方案,并且要调用URL方案,现在需要在应用程序Info.plist中声明它们.有一个新的密钥,LSApplicationQueriesSchemes,在这里你需要添加你想要的方案列表canOpenURL.

试试这样吧.

<key>LSApplicationQueriesSchemes</key>
<array>
    <string>fbauth2</string>
</array>
Run Code Online (Sandbox Code Playgroud)

  • 为什么这些信息没有显示在iOS快速入门中?https://developers.facebook.com/quickstarts/926602334080849/?platform=ios (20认同)
  • 非常感谢您的解决方案!有用 ! (2认同)

M S*_*nil 25

如果您使用的是iOS9,那么更新info.plist文件非常重要.您只需要执行3个步骤1.转到info.plist 2.添加一个字段,即LSApplicationQueriesSchemes NSArray数据类型.3.将一个NSString数据类型名称添加为fbauth2.

而已.干净,跑步.警告不会再显示.在此输入图像描述


小智 20

对于FaceBook SDK的v4.6.0,将以下键添加到plist文件中:

<key>LSApplicationQueriesSchemes</key>
<array>
        <string>fbapi</string>
        <string>fb-messenger-api</string>
        <string>fbauth2</string>
        <string>fbshareextension</string>
</array>
Run Code Online (Sandbox Code Playgroud)

链接:https://developers.facebook.com/docs/ios/ios9


Mik*_*e.R 14

只需按照Facebook解释:为iOS9准备应用程序
Apple在其隐私和您的App Keynote 2015中提及它


use*_*172 5

请不要将此添加到您的CFBundleURLSchemes ...这实际上会使任何应用程序尝试在Facebook身份验证时出现,导致弹出窗口显示"X app想要打开"对话框...

你不想这样做.

CF:

https://developers.facebook.com/docs/applinks/ios
https://www.fireeye.com/blog/threat-research/2015/04/url_masques_on_apps.html
https://www.reddit.com/r/workflow/comments/2tlx29/get_url_scheme_of_any_app
Run Code Online (Sandbox Code Playgroud)