简体   繁体   English

Facebook与目标C的集成

[英]facebook integration with objective c

My App was work fine, before few days it become crash and give this error: 我的App运行正常,几天前崩溃,并出现以下错误:

Terminating app due to uncaught exception 'InvalidOperationException', reason: 'fbauth2 is missing from your Info.plist under LSApplicationQueriesSchemes and is required for iOS 9.0'

When I check the plist file I found that the fbauth2 is there as it should be: 当我检查plist文件时,我发现fbauth2应该存在:

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

any one have any idea about that? 有人对此有任何想法吗?

Regards. 问候。

You only need to add into your Info.plist. You have to add 
<string>fb-messenger-api</string> for iOS 9.0

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

You can try this - 你可以试试这个-

In your info.plist , add a row with the key LSApplicationQueriesSchemes . 在您的info.plist ,添加一个键为LSApplicationQueriesSchemes的行。 Make sure it is of array type. 确保它是array类型。 For it's only element, add the string fbauth2 . 对于唯一元素,添加字符串fbauth2

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM