Trying to use ios on-demand resources in a cordova project and need to add a folder to the ios project that I can mark as belonging to a target then add an on-demand resource tag.
I can do this in the generated xcode project by using 'add files' and adding the folder. Then in the File Inspector, check the required target then in the 'On Demand Resource Tags' text box adding my tag e.g. 'MY_TAG'.
Obviously it isn't feasible to generate the project by doing a cordova build then manually adding and tagging the folder but I can't figure out how to add the folder and tag it using various plugins, hooks etc. I tried moving the folder into the root of the ios project using a custom hook (after_prepare) and the folder is in the resulting xcode project but I still have to manually add it and tag it.
It seems that cordova is not happy about me adding folders at the same level as the www directory. I need a directory structure :
myproject
www
MyOnDemandResourcesFolder
If I do add the folder under the www folder (as a sub folder) the option to associate it with a target and provide an on-demand resource tag is not available in the file inspector of the xcode project. In fact, that goes for any sub folder that you create in the xcode project - it cannot be marked as an On-Demand Resource.
Any help would be much appreciated. It doesn't seem that many people are using on-demand resources apart from simple use cases of individual files.