How many files can I safely store in an iOS app?
We use FMOD to play sound in our game, and it seems like a good strategy is to save audio files that were previously opened, but not loaded into memory, for fast playback as needed.
I did not find information about the limits for each process, and not about the global scale of the system in the Apple documentation, here in SO or elsewhere.
This quick test using the handy Python env on iPad assumes that the limit for each process is 250:

I think we will stay below this limit. But we suspect that there is a rare problematic situation where files with opening are not executed.
Is there also a system limit that may affect at some point?
The limit for each application that I think I found with this test was set in a comment on the corresponding question, but I can not comment on it due to lack of reputation (first post): on iOS / iPhone: "Too many open files ": you must specify open files (for example, lsof)
EDIT:
Limits are easy to check on OSX like this. Perhaps this is also possible on a device with a jailbroken iOS or somehow from an application using the Apple API / launch this system command?
Tonis-MacBook-Pro:MacOS antont$ sysctl kern.maxfilesperproc kern.maxfilesperproc: 10240 Tonis-MacBook-Pro:MacOS antont$ sysctl kern.maxfiles kern.maxfiles: 12288
source share