Download Download files from an iOS real device to my local automation project

Hello! How can I download files from an iOS real device to my local automation project, i use Appium, webDriverIO, and TypeScript. I created an e2e code and can download this file on my device (media gallery). I would appreciate any pieces of advice

why and what do you mean when you say download files? Do you merely want to retrieve a logfile? Is this problem iOS specific? How are you wanting to “fetch” the file exactly, over a tcp socket , and where exactly is the file?