【发布时间】:2017-02-01 19:50:43
【问题描述】:
我需要将一些文件添加到 IONIC 生成的 XCode 项目的“Resource”文件夹中。
文件是InfoPlist.strings,为了本地化权限信息,这个:
我在 ionic 项目文件夹中添加了文件:
“资源/ios/localization/de.lproj/InfoPlist.strings” “资源/ios/localization/en.lproj/InfoPlist.strings” “资源/ios/localization/es.lproj/InfoPlist.strings” “资源/ios/localization/it.lproj/InfoPlist.strings” "资源/ios/localization/fr.lproj/InfoPlist.strings"
我的问题是:
- 执行“
ionic build ios”时,如何直接在XCode资源文件夹中复制这些文件? - 我需要在
config.xml文件中添加一些特殊的东西吗?如果是,是什么?
config.xml 文件的摘录:
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
<allow-navigation href="*" />
<config-file parent="ITSAppUsesNonExemptEncryption" platform="ios" target="*-Info.plist">
<false/>
</config-file>
<icon src="resources/ios/icon/icon.png" width="57" height="57" />
[...]
<splash src="resources/ios/splash/Default~iphone.png" width="320" height="480" />
</platform>
【问题讨论】:
标签: android ios xcode ionic-framework localization