Search code examples
capacitor

capacitor copy resources to native apps


I am using capacitor and trying to copy resources to native apps from config.xml. I am using this:

   <platform name="ios">
        <resource-file src="www/certificates/certificate.cer" target="App/www/certificates/certificate.cer" />

but nothing gets copied.

Any idea what I'm doing wrong?

The end result is that I want to be able to copy resource files to the native folders on compile so I don't copy them there manually


Solution

  • In Capacitor you are supposed to copy the files manually to the native projects because in Capacitor you commit the native projects.