您的Info.plist中缺少fbauth2

时间:2018-11-12 19:08:33

标签: ios

我正在iOS设备上测试Facebook SDK,按下登录按钮时出现此错误:

  

2018-11-11 22:27:57.543163 + 0100滑动正方形[248:5302]   Facebook权限public_profile 2018-11-11 22:27:57.543420 + 0100   swipethesquares [248:5302] Facebook登录:1 2018-11-11   22:27:57.543563 + 0100滑动方块[248:5302]将登录状态设置为   处理2018-11-11 22:27:57.595283 + 0100 swipethesquares [248:5302]    *由于未捕获的异常'InvalidOperationException'而终止应用程序,原因:'fbauth2从您的丢失   LSApplicationQueriesSchemes下的Info.plist,对于iOS是必需的   9.0英尺   * 第一个调用堆栈:(0x1f97e7ef8 0x1f89b5a40 0x10307c230 0x104bd0de4 0x104bd2e44 0x10307b0ac 0x1030a459c 0x1030a499c   0x1030a4944 0x1030a3698 0x102b32570 0x1f97ef660 0x1f96cb980   0x102b923b4 0x102d3f1a8 0x102d384f4 0x102d1f39c 0x102d22078   0x102d21ed8 0x102b81954 0x102b81aa0 0x102b8e290 0x102b8e7fc   0x102cc99ec 0x102ccf6e0 0x102ccfcb8 0x102b8d7f8 0x102b8b1ec   0x10527966c 0x1fdc9d574 0x1f9a4758c 0x1f974f3e4 0x1f9776c30   0x1f977637c 0x1f9771134 0x1f97705b8 0x1fb9e4584 0x2265e4bc8   0x102dcd9cc 0x1f9230b94)libc ++ abi.dylib:未捕获而终止   NSException(lldb)类型的异常

我已阅读到我必须在Info.plist文件中添加“ fbauth2”,但是我的Info.plist文件已经包含以下行:

<key>LSApplicationQueriesSchemes</key> 
<array>
<string>fbapi</string>   
<string>fb-messenger-api</string>  
<string>fbauth2</string>   
<string>fbshareextension</string>
<array>

有什么建议吗?

谢谢

0 个答案:

没有答案