File Permissions Issues On IOS 17

As of upgrading my iPad to IOS 17.1.1, I am getting new file permissions issues where I can’t write to files in PersistentDataPath, and some background packages like Metal seem to be having permissions issues.

To test this, I made a new unity project and it’s still having these issues. Even trying to build an empty project, and opening the XCode build it creates, it spams these errors dozens of times from it failing to access certain library cache files:

Failed to get cache main folder: path for application cache was not found (errno = 13, count = 1, len = 99, path = /private/var/mobile/Containers/Data/Application/B7B5798C-3198-48F4-89F9-34C41DDF903A/Library/Caches)
Type: Fault | Timestamp: 2023-11-29 17:40:38.458368-05:00 | Library: Metal | Subsystem: Metal | Category: Default | TID: 0x4e9f1

Testing on another iPad I am not getting this issue in IOS 16.6, only 17. I have tested in Unity versions 2022.3.13f1 and 2023.2.1f1.

Could you show the code that reads those files?

It seems that my issue has been fixed!

A month ago I had tried manually deleting the app on the iPad, clearing all the cache, and reinstalling a fresh build, and I was still having this issue.

Yesterday I tried doing that again and now it’s all working as it should and I’m not having these permissions errors. I recently updated Unity, xCode, macOS, and IOS, everything I could, so not sure what exactly fixed it, but issue does seem resolved for me.