gpt4 book ai didi

ios - 未检测到 AppID

转载 作者:行者123 更新时间:2023-11-28 09:01:22 25 4
gpt4 key购买 nike

我想在 Swift 中使用 facebook 登录。他们给我错误 AppId not set in Plist 但我在 plist 上设置 AppId。它给出了这个错误:

my2015-08-12 17:49:27.211 swiftcontact[16083:2102678] *** Terminating app due to uncaught exception 'InvalidOperationException', reason: 'App ID not found. Add a string value with your app ID for the key FacebookAppID to the Info.plist or call [FBSDKSettings setAppID:].'

这些是我的 plist 文件的内容:

<dict>
<key>FacebookAppID</key>
<string>9023XXXXXXXXXXX</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>com.varun.$(PRODUCT_NAME:rfc1034identifier)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>FacebookDisplayName</key>
<string>BOOMaGIFT</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLSchemes</key>
<array>
<string>fb9023XXXXXXXXXXX</string>
</array>
<key>CFBundleURLName</key>
<string></string>
</dict>
</array>
<key>LSRequiresIPhoneOS</key>
<true/>
</dict>
</plist>

最佳答案

我也遇到过这个,我所做的就是在 viewDidLoad 中声明我的应用程序 ID,就像这样 FBSDKSettings.setAppID("your_app_id")。

关于ios - 未检测到 AppID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31965115/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com