gpt4 book ai didi

ios - 如何用代码更新 info.plist?

转载 作者:行者123 更新时间:2023-11-28 18:55:20 28 4
gpt4 key购买 nike

我正在使用 Xamarin Studio/XCode/Visual Studio 在 Xamarin 中构建应用程序。我需要使用 Facebook SDK对于 iOS 项目,但说明需要将该链接上显示的代码添加到 info.plist。但是,如果我在这些 IDE 中的任何一个中打开 info.plist,我都会得到一个结构类似于表单的窗口来编辑文件,所以我无法按照教程所述添加代码?在“高级”下,有一个添加 URL 类型的选项,但我不确定要在此处输入什么,或者这是否是正确的选项。

谢谢

最佳答案

首先,转到您的 Xcode 项目并找到 info.plist 文件:

Just open the folder and the file should be there

你应该看到这样的东西:

screenshot of the files on the left sidebar

然后右键单击该文件并选择打开方式,然后选择源代码:

"Open As/Source Code" selected from the context menu

然后它应该允许您将 Facebook 代码添加到您的 Info.plist 文件中,如下所示:

screenshot of the source code

关于ios - 如何用代码更新 info.plist?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34551737/

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