簡體   English   中英

Facebook與目標C的集成

[英]facebook integration with objective c

我的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'

當我檢查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>

有人對此有任何想法嗎?

問候。

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>

你可以試試這個-

在您的info.plist ,添加一個鍵為LSApplicationQueriesSchemes的行。 確保它是array類型。 對於唯一元素,添加字符串fbauth2

在此處輸入圖片說明

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM