为什么我的 info.plist 不是可用的 iphone info.plist

发布于 2024-09-19 03:01:56 字数 416 浏览 1 评论 0原文

我的第一个问题是,一旦我使用主页按钮退出,我不希望我的应用程序留在后台。 所以我在 info.plist 文件中添加了布尔类型的“UIApplicationExitsOnSuspend”键。 Xcode 无法识别值“UIApplicationExitsOnSuspend”,并且我的应用程序继续留在后台...

问题的根源是我删除了包含 info.plist 的“资源”组的引用。相反,我用我的 info.plist 创建了一个“真实”目录“资源”(以及其他资源如图像,...)并将其添加到我的项目中。现在,Xcode 无法识别特定于 iPhone 的所有选项,因此不值得在我的应用程序上使用。 在我的项目的属性中,我已将“Info.plist 文件”键设置为我的 info.plist,但它不起作用...... 我已经重建了代码感知索引,但它不起作用......

我忘记做什么? 谢谢。

My first problem is that i don't want my apps stay in background once i'have quit it with home button.
So i have added 'UIApplicationExitsOnSuspend' key in my info.plist file with boolean type.
The value 'UIApplicationExitsOnSuspend' is not recognized by Xcode, and my app continue to stay in background ...

Source of my problem is that i have deleted reference of Group 'Resources' containing info.plist. Instead ,i have created a 'real' directory 'resources' with my info.plist (and with other resources as images, ...) and added it to my project. And now all options specific for iPhone are not recognized by Xcode and worth not used on my apps.
In property of my project i have setted 'Info.plist file' key to my info.plist but it don't work ...
I have rebuild code sense index, but it don't work ...

What i have forget to do ?
Thx.

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

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

发布评论

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

评论(2

番薯 2024-09-26 03:01:56

您必须将项目定向到 Info.plist 的位置。如果您已将其放入名为“Resources”的“真实”目录中,请执行以下操作:点击项目 ->编辑活动目标;找到名为“Info.plist File”的设置并将其值更改为“Resources/Info.plist”。清理并重建您的项目,它应该可以正常工作。

另外,请确保您的 Info.plist 文件构建在当前目标中。在这种情况下,Xcode 会向您发出编译器警告。

You'll have to direct your project to the location of Info.plist. If you've put it in a 'real' directory named 'Resources', do the following: hit project -> edit active target; find the setting named 'Info.plist File' and change its value to 'Resources/Info.plist'. Clean and rebuild your project, and it should work properly.

Also, make sure that your Info.plist file is not being built in your current target. Xcode will give you a compiler warning in this scenario.

撩动你心 2024-09-26 03:01:56

对我有用的是将我的 info.plist 文件转换为 xml。我创建了一个新的空白项目只是为了查看 info.plist 文件,并看到它是 xml 格式的,而我的旧项目没有 xml 格式的 info.plist。因此,我使用新的 info.plist xml 格式来重写我的 info.plist 文件。

What worked for me is converting my info.plist file to xml. I created a new blank project just to see the info.plist file and saw that it was in xml, whereas my older project did not have info.plist in xml format. So, I used the new info.plist xml format to rewrite my info.plist file.

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