Cordon config.xml overwritten

I installed the Cordova base project, and whenever I run the cordova assembly, the config.xml file in IOS is overwritten by default, and any settings that I add in the config.xml file in the project folder are simply added to config.xml in the folder iOS platforms. So, for example, by default, the config.xml file in the IOS folder has <preference name = "DisableOverscroll" value = "false" / ">, and when I add the same line (but with True) to the config.xml file in my folder the project, the received config.xml file in the IOS folder ends up with OBO entries (false and true) .How do I get the config.xml file in the IOS folder so that the settings are the way I set them ???

Thank!

+3
source share
2 answers

Thanks guys. I think I found the answer last night. There is default.xml in the platform folder. As soon as I changed the default values ​​for preferences there, they consistently appeared correctly in config.xml whenever I ran the build command.

+2
source

Starting with version 3.3.0, a file config.xmlfor all build platforms is created in the root folder of the project instead of the folder www.

In your case, the second configuration located in wwwcan be safely ignored, even if the parameter value is false.

Link: 3 Changes to the Cordoba CLI You Should Know About

--- Update: after QuickFix comment ---

There are 3 places where it config.xmlcan be displayed for iOS development.

  • Cordova MyApp/config.xml
  • iOS xcode MyApp/platforms/iOS/MyApp_name/config.xml
  • iOS www MyApp/platforms/iOS/www/config.xml

. 3 . config.xml . 2 - , Xcode IPA.

. 1 , cordova build ios cordova prepare ios cordova run ios - IPA, . 1, @QuickFix, № 2 № 3 , cordova.

cordova build ios . Xcode HTML, MyApp/platforms/iOS/www/.

. Android . 1.

0

All Articles