0

I have been struggling (see here & here) for a while now to get it right to write to my app's documents directory. It always tell me "Not a Directory" even though the code is just copied from a simple tutorial etc.

Do I need to set anything in the Target or project settings to be able to accomplish this?

My code works totally fine on the simulator, but not on the actual device.

Community
  • 1
  • 1
Pangolin
  • 7,284
  • 8
  • 53
  • 67

2 Answers2

2

Usually it works like a charm to write on the documents directory. No need to setup anything on the project level. The only difference I see regarding the file system is that it is case sensitive on the device and case insensitive on the simulator. Say you want to write in a folder called "Document", if you spell it "document" in your code it is going to work in the simulator (just like it would work if you spelled it "doCumEnt"), but it won't work on the device.

rpechayr
  • 1,282
  • 12
  • 27
0

The answer is NO

The problem got solved by setting a non standard Bundle ID in die info.plist

I used the Bundle ID from iTunes Connect for this specific app. Now everything works perfectly.

Pangolin
  • 7,284
  • 8
  • 53
  • 67