简体   繁体   English

将自定义plist添加到Appcelerator上的项目中

[英]Add custom plist to a project on Appcelerator

One of the third party frameworks we use on our projects needs a plist file to be added to Xcode, it provides some configurations keys for that framework. 我们在项目中使用的第三方框架之一需要将一个plist文件添加到Xcode中,它为该框架提供了一些配置键。 Of course we can use Hyperloop to integrate the framework, but how doI add this plist file to the project in the way that it is compiled just as a native on and the framework can found it on the app to work? 当然我们可以使用Hyperloop来集成框架,但是我如何将这个plist文件添加到项目中,就像它本地编译一样,框架可以在应用程序上找到它?

Inside your tiapp.xml you have a section. 在你的tiapp.xml里面你有一个部分。 As far as I understood, this is where you should put your configurations into, because its content is given to xcode as it's plist contents. 据我所知,这是您应该将配置放入的位置,因为它的内容是作为plist内容提供给xcode的。

Maybe you take a look into: Appcelerator Reference 也许你看看: Appcelerator参考

You can include a custom Info.plist file in the top-level directory of your Titanium project, but these value are overwritten by the settings in the section of the tiapp.xml file. 您可以在Titanium项目的顶级目录中包含自定义Info.plist文件,但这些值将被tiapp.xml文件部分中的设置覆盖。

Hope this helps you. 希望这对你有所帮助。

Greetings Dom 问候Dom

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

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