Sound tracks assets

I'm writing an app that, among other things, need to be able to play several tracks using AvAudioEngine.

My question is about the best practice for carrying with the App a set of tracks.

I could 'bundle' them with the app but currently they are about 400MB and I think it's too much. I think that this would also significantly slow my deploy times every time I need to run/debug the app.

On my iPad Pro, using the File app, I can see the 'On My iPad' folder and inside that folder I already see some folders used by others App, like Cubasis LE, Acrobat and GarageBand for iOS.

I can't find any example that shows me how to access these locations and which capability I need to add to my app (if any).

Can you please point me in the right direction?

Thanks,

Guglielmo

Are these tracks a static set of assets which are the same for all users? Perhaps you could use on-demand resources: https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/On_Demand_Resources_Guide/index.html

If you want to access existing files in On My iPad, use UIDocumentPickerViewController to allow the user to select files that your app can access: (https://developer.apple.com/documentation/uikit/uidocumentpickerviewcontroller)

Sound tracks assets
 
 
Q