I can read the file just fine, but when I write to it, I get this exception on iOS. Writing works in the unity editor though.
I’m using a StreamWriter to write a string to the file and on initialization, I set the file path attributes to normal like this, still getting the exception.
The file path is “Application.streamingAssetsPath + file_path”, and my file is in Assets/StreamingAssets/[file_path]
So you can read from streaming assets but not write, so if you want to import data from Streaming Assets folder, then you need to read it, and write it to the PersistentDataPath folder and use it from then on out.
My solution uses the streaming assets path in editor, so any data written in editor mode is imported by all new builds.