代碼中打斷點(diǎn),在控制臺(tái)選中輸入 po NSHomeDirectory()
復(fù)制沙盒路徑,桌面空白處,command+shift+G,粘貼沙盒路徑,點(diǎn)擊前往訪問(wèn)

image.png

image.png
真機(jī)查看沙盒路徑
選擇Add Additional Simulator

image.png
同一局域網(wǎng)可以使用無(wú)線網(wǎng)調(diào)試

image.png
選擇Download Container

image.png
下載后右鍵顯示包內(nèi)容可以查看真機(jī)沙盒文件

image.png

image.png