I’m porting a C++ lib to iOS, and have run into an issue where the code calls tmpnam. The function returns “var/tmp/tmp.0.0xGlzv” which I assume is outside of the “sandbox” that my app is allowed to play in. A subsquent fopen returns “Operation not permitted”. Is there a viable replacement?
Share
What about
?
For a unique filename, try something like this:
This is simple, but probably not the most memory-efficent answer.