如何用代码更新 info.plist? [英] How to update info.plist with code?
问题描述
我正在 Xamarin 中构建一个应用程序,使用 Xamarin Studio/XCode/Visual Studio.我需要为 iOS 项目使用
您应该会看到如下内容:
然后右键单击该文件并选择打开为,然后选择源代码:
然后它应该允许您将 Facebook 代码添加到您的 Info.plist 文件中,如下所示:
I am building an app in Xamarin, using Xamarin Studio / XCode / Visual Studio. I need to use the Facebook SDK for the iOS project, but the instructions require adding the code shown on that link to info.plist
. However, if I open info.plist in any of those IDEs, I get a window structured like a form to edit the file, so I can't add the code in as stated by the tutorial? Under Advanced, there is an option to add URL Types, but I am not sure what to put in here, or if this is the right option to use.
Thanks
First, go to your Xcode project and find the info.plist
file:
You should see something like this:
Then right click the file and choose Open As, and then Source Code:
And then it should allow you to add the Facebook code to your Info.plist file like this:
这篇关于如何用代码更新 info.plist?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!