iOS - Load XML content file using TitleContainer.OpenStream

I have a number of XML files in the a subfolder of the content directory in my project, which need to be loaded via TitleContainer.OpenStream and XDocument.Load

On iOS, this is throwing a System.IO.DirectoryNotFound exception for me:
“Could not find a part of the path ‘/Users/[Me]/Library/Application Support/iPhone Simulator/7.1/Applications/[GUID]/[MyApp].app/Content/Files/Levels/DefaultAreas.xml’.”

… where [Me] is my user name, [GUID] is the application guid and [MyApp] is the application name.

The file in question is in Content/Files/Levels/ and I have tried with the file properties set to both “Do not copy” and “Copy if newer”.

Looking through the folder structure on the Macbook’s hard drive, starting at root level, I cannot find a “Library” folder within /Users/[Me]

Can any point me in the right direction to get this working?


The Library folder is hidden by default I believe. Use go to folder to go there. (option-G I think? it is in the menu)

Content should be Content, copy if newer.