I'm using NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES)
to get the application documents directory in my app, but the array that's returned contains only one object, and it's an unwritable, incorrect directory:
/Users/me/Library/Application Support/iPhone Simulator/Documents
I found this question which indicates that the problem is related to provisioning, but the answer says little more than that. So I guess I'm asking a duplicate question, but the answer to that question is insufficient, so I'm hoping to get an actual answer in this one.