Titaniumn 应用程序不在后台运行 - 无需更改 info.plist

发布于 2025-01-03 12:36:30 字数 283 浏览 3 评论 0原文

我正在尝试使用 Appcelerator Titanium 让我的应用程序在后台运行,并且只遇到建议在构建完成后编辑 info.plist 文件的解决方案。

<key>UIApplicationExitsOnSuspend</key>
<true/>

这按预期工作,但这意味着我每次在应用程序上进行完全重建时都必须将其放入。有谁知道我可以在 tiapp.xml 文件中放入什么来实现此目的?

谢谢

I'm trying to make my app not run in the background using Appcelerator Titanium, and have only come accross the solution which suggests editing the info.plist file after the build has completed.

<key>UIApplicationExitsOnSuspend</key>
<true/>

This works as expected, however this means I would have to put this in each time I do a full rebuild on the app. Does anybody know of anything i can put in the tiapp.xml file in order to acheive this?

Thanks

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

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

发布评论

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

评论(1

怼怹恏 2025-01-10 12:36:30

您只需将构建的 info.plist 复制到您的 Resources 文件夹中一次即可。来自 http://developer.appcelerator.com/ blog/2010/04/adding-custom-fonts-to-ipad.html

“作为使用 1.3+ 版本的更新,我们更改了自定义 Info.plist 文件的处理方式在 Titanium 中,您需要将在 build/iphone 下为您的项目生成的 Info.plist 复制到您的项目根文件夹中,从现在开始,Titanium 编译器将添加任何自定义 Info.plist 更改。始终使用此 Info.plist。”

You can just copy the built info.plist into your Resources folder once. From http://developer.appcelerator.com/blog/2010/04/adding-custom-fonts-to-ipad.html

"As an update for those using 1.3+, we’ve changed the way that custom Info.plist files are handled in Titanium. You’ll want to copy the Info.plist that is generated for your project under build/iphone into your project root folder. You can edit this file to add any custom Info.plist changes. From now on, Titanium compiler will always use this Info.plist."

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