xcode13 info.plist上的不可用的键

发布于 2025-02-05 05:10:33 字数 1163 浏览 5 评论 0原文

摘要:

我想知道如何将以下片段添加到xcode13上的信息。

<key>CFBundleURLTypes</key>
<array>
  <dict>
  <key>CFBundleURLSchemes</key>
  <array>
    <string>fbAPP-ID</string>
  </array>
  </dict>
</array>
<key>FacebookAppID</key>
<string>APP-ID</string>
<key>FacebookClientToken</key>
<string>CLIENT-TOKEN</string>
<key>FacebookDisplayName</key>
<string>APP-NAME</string>

详细信息:

我正在努力将 Facebook登录API 集成到我用 swiftui 编写的应用程序中。但是,根据Meta开发人员说明,我们需要在Info.plist中添加代码。 ),我试图按以下方式添加键:

  1. 像往常一样,在自定义 iOS目标属性窗格(projectName - &gt; target - &gt; info-&gt; custom iOS target属性 按钮;
  2. &nbsp;在显示列表中搜索了a&nbsp;

但是,我找不到以下密钥。

  • cfbundleurlschemes
  • cfbundleurltypes
  • facebookappid
  • facebookclienttoken

我已经完成了指令的远期步骤。

我的环境:

  • Macos Monterey v12.1
  • Xcode版本13.2.1(13c100)
  • Swiftui

Summary:

I want to know how to add the following snippet to info.plist on Xcode13, when I cannot find the name of keys I want to add in the key name list.

<key>CFBundleURLTypes</key>
<array>
  <dict>
  <key>CFBundleURLSchemes</key>
  <array>
    <string>fbAPP-ID</string>
  </array>
  </dict>
</array>
<key>FacebookAppID</key>
<string>APP-ID</string>
<key>FacebookClientToken</key>
<string>CLIENT-TOKEN</string>
<key>FacebookDisplayName</key>
<string>APP-NAME</string>

Details:

I am working to integrate FACEBOOK login API to my application written in SwiftUI. However, under the meta developer instructions, we need to add the code in info.plist. As usual, on Custom IOS target properties pane (projectname -> target -> info -> Custom IOS target properties), I tried to add the key by the following way :

  1. Pushed a plus button;
  2.  Searched a key name in the appeared list. 

However, I cannot find the following keys.

  • CFBundleURLSchemes
  • CFBundleURLTypes
  • FacebookAppID
  • FacebookClientToken

I have already completed the forward steps in the instructions.

My environment:

  • MacOS monterey v12.1
  • Xcode Version 13.2.1 (13C100)
  • SwiftUI

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

中性美 2025-02-12 05:10:34

搜索只是提示,您可以通过复制paste添加任何想要的密钥:

“

*btw,URL类型在URL类型下方添加:

“

Search is just for tips, you can add any key you want by copy-paste:

demo

*btw, URL types are added in section below URL Types:

demo2

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文