Xcode: directory file for simulator Iphone

后端 未结 8 1118
[愿得一人]
[愿得一人] 2021-01-30 03:25

i want to write a string in a file \"file.txt\": this file in my project (for Iphone) is inside Resources; I try to write a string in this file but it don\'t work, I show my cod

8条回答
  •  余生分开走
    2021-01-30 03:59

    If you are using Xcode 7 and higher follow this:

    Documents Directory:

    file:///Users/codercat/Library/Developer/CoreSimulator/Devices/YourProjectDict/data/Containers/Data/Application/(sample digit)7F53CFB3-C534-443F-B595-62619BA808F2/Documents/your file located here
    

提交回复
热议问题