简体   繁体   English

找不到主要的Bundle plist

[英]Can't find main Bundle plist

I am trying to use the Facebook SDK. 我正在尝试使用Facebook SDK。 I need to add 3 key:values pairs to my info.plist. 我需要在我的info.plist中添加3个key:values对。 I can't find the info.plist in my files, I only found the main-Info.plist in the folder libs/external of my project but when I inserted there the key:values for the Facebook SDK it gave the following error: 我在文件中找不到info.plist,只在项目的libs / external文件夹中找到了main-Info.plist,但是当我在其中插入Facebook SDK的key:values时,出现了以下错误:

*** Terminating app due to uncaught exception 'com.facebook.sdk:InvalidOperationException', reason: 'FBAppBridge: AppID not found; Add a string valued key with the appropriate id named FacebookAppID to the bundle *.plist'
*** First throw call stack:

So I created a new file named Info.plist and added there the necessary information. 因此,我创建了一个名为Info.plist的新文件,并在其中添加了必要的信息。 After I done that I couldn't even build my app. 完成之后,我什至无法构建我的应用程序。 What should I do? 我该怎么办?

Here is an images that shows all the *.plist files in my project: 这是显示我项目中所有* .plist文件的图像: 在此处输入图片说明

I have the feeling that all the values that should be in my bundle .plist are here: 我感觉应该在我的包.plist中的所有值都在这里: 在此处输入图片说明 But I can't add new values here!! 但是我不能在这里添加新值! PS I created this project using spritebuilder. PS我使用spritebuilder创建了这个项目。

the info.plist will be renamed based on the name of your app, it will beocome AppName-Info.plist. info.plist将根据您的应用程序名称重命名,它将成为AppName-Info.plist。

You may have found the wrong one. 您可能找到了错误的一个。 Undo those changes, and look for the AppName-Info.plist in the root of your xcode project. 撤消那些更改,然后在xcode项目的根目录中查找AppName-Info.plist。

When creating a project using SpriteBuilder a file Info.plist was created in the localization: "Source/Resources/info.plist". 使用SpriteBuilder创建项目时,在以下本地化版本中创建了Info.plist文件:“ Source / Resources / info.plist”。 For some reason this file is not accessible on xcode I could only find it on the finder. 由于某种原因,该文件无法在xcode上访问,我只能在finder上找到它。 I just had to add this file to XCode and edit it there and it was solved. 我只需要将此文件添加到XCode并在那里进行编辑即可解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM