Add static file to Resource folder with ionic in XCode project


#1

I need to add some files to the “Resource” folder of the IONIC generated XCode project.

File is InfoPlist.strings, in order to localizate the permission messages.

I’ve added files in the ionic project folder:

"Resources/ios/localization/de.lproj/InfoPlist.strings" "Resources/ios/localization/en.lproj/InfoPlist.strings" "Resources/ios/localization/es.lproj/InfoPlist.strings" "Resources/ios/localization/it.lproj/InfoPlist.strings" "Resources/ios/localization/fr.lproj/InfoPlist.strings"

My question is:

  • What is the way to copy these files when “ionic build ios” is executed, directly in the XCode resource folder?
  • I need to add something particular in the config.xml file? If yes, what?

Extract of config.xml file:

  <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>

thanks

( http://stackoverflow.com/questions/41988437/add-static-file-to-resource-folder-with-ionic-in-xcode-project )