Are there APIs to copy files from an iOS app's documents folder?

If I connect my phone to my computer, I can select the phone in the finder (Catalina) or in iTunes (pre-Catalina).


Once selected, I can copy files from my Mac to the document folder of an app I have installed on my phone.


My question is whether or not there are APIs that allow me to do this programmatically...?

Replies

Programmatically from a MacOS App ?

When the device is connected to the Mac ?


May read this to get early hints:

https://stackoverflow.com/questions/34115251/how-to-programmatically-discover-the-ios-devices-list-and-connect-for-mirroring