以这个文件在桌面(Desktop)为例
- 绝对路径
Users/atsuki/Desktop/hello.txt
- 相对路径
…/…/…/…/…/…/…/…/Desktop/hello.txt
- 在Debug文件夹里创建文件
Preferences
DerivedData --> 相应文件夹 --> Build --> Products --> Debug在这个地方拖入需要的文件
以这个文件在桌面(Desktop)为例
Users/atsuki/Desktop/hello.txt
…/…/…/…/…/…/…/…/Desktop/hello.txt
Preferences
DerivedData --> 相应文件夹 --> Build --> Products --> Debug在这个地方拖入需要的文件