facebook与目标c的整合

问题描述 投票:0回答:2

我的应用程序工作正常,几天之前就崩溃并发出此错误:

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

当我检查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>

谁对此有任何想法?

问候。

ios objective-c facebook
2个回答
0
投票
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>

0
投票

你可以尝试这个 -

在你的info.plist中,添加一行密钥LSApplicationQueriesSchemes。确保它是array类型。对于它唯一的元素,添加字符串fbauth2

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.