Titaniumn 应用程序不在后台运行 - 无需更改 info.plist
我正在尝试使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您只需将构建的 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."