iOS - Build works but in-app I'm unable to access my streaming assets because of UnauthorizedAccessException
I built my iOS game on Windows, then transfer the xcode export to my mac and side-load it onto my iPad, and it works beautifully except for when I go to load a file from my streaming assets folder, I get the following error in xcode:
UnauthorizedAccessException: Access to the path "/private/var/containers/Bundle/Application/61598283-623C-434A-95DF-0D3D1B9033A3/ZenTrails.app/Data/Raw/Presets/Vortex.mndla" is denied.
It seems like a problem with System.IO.FileStream. Do I need to do something special to allow permission to access streaming assets in iOS? I wouldn't be surprised since I have to open the fucking terminal to change permissions via "chmod +x" just to even build the game on Mac.
I would just work in Unity on my Mac but for some unexplainable reason I get atrociously bad performance, to the point it's unusable. Like we're talking less than 5 fps, even though my game runs at a smooth 60fps on windows AND iOS. So for the time being I'm working on PC and transferring to the Mac.
Thanks.