Open guirip opened 4 years ago
+1
The root of this issue is actually in cordova-common's FileUpdater, where it will create a directory but not populate it: https://github.com/apache/cordova-common/blob/d7f71e69726ef152fb85312895c99d8f3aa069fc/src/FileUpdater.js#L83-L88
Going to move this issue to that repository for followup.
Bug Report
Problem
What is expected to happen?
In the cordova project, at the same level as the config.xml file I have a folder named 'ios-resources', which contains a 'en.lproj' folder. This 'en.lproj' folder contains a file InfoPlist.strings.
In the config.xml, I have this:
I expect the 'en.lproj' folder and its content to be added to the XCode project.
What does actually happen?
I notice that the folder en.lproj is created in platforms/ios/[APP NAME]/Resources/en.lproj/ but it is empty.
If I run
cordova prepare
, this warning appears:Information
important: If you declare the same thing in the context of a cordova plugin, then the 'en.lproj' folder AND its content are successfully added to the XCode project...
Command or Code
Write:
Then:
vim config.xml
Add the following tag to platform tag where attribute name is "ios":
Finally:
The destination folder is still empty, the above
cordova platform add
command has output a warning message about overwriting the en.lproj folder:Environment, Platform, Device
Issue noticed on cordova-ios, but I have no idea if cordova android has this problem too.
Version information
cordova -v
cordova iOS platform version:
cordova plugins:
Checklist