Is an iPhone app's document directory /var/mobile/Documents or /var/mobile/Library/AppName?

后端 未结 7 783
小蘑菇
小蘑菇 2020-12-21 00:34

As far as I know (and read everywhere) an application\'s documents directory should be somewhere in /var/mobile/Library/ on the iPhone but if I\'m logging the g

7条回答
  •  攒了一身酷
    2020-12-21 01:01

    I am suffering with this issue too... I haven't find out what is happening yet, so I've accepted to work at /var/mobile/Documents. However, I've had to create that directory manually in my device (via ssh or mobile terminal) and set its permissions to 666 [chmod -r 777 /var/mobile/Documents] to let my app save and load files there.

    See you!

提交回复
热议问题