[英]Is there an equivalent for the “adb shell” on iOS
I need to access the filesystem of the App I am devolping on the iOS Simulator
. 我需要访问在
iOS Simulator
上开发的App的文件系统。 On Android
I start up an Emulator
, go to the console and type adb shell
, followed by run-as com.MYAPP
. 在
Android
我启动一个Emulator
,转到控制台并键入adb shell
,然后键入run-as com.MYAPP
。 Here we go. 开始了。 I am in the filesystem and can do stuff like
mkdir
, rm -R ...
etc. Is something like that possible with iOS
? 我在文件系统中,可以执行
mkdir
, rm -R ...
等操作iOS
可以执行类似操作吗? There must be some sort of file manager... All the resources I find tell me how to programmatically access the filesystem. 必须有某种文件管理器...我找到的所有资源都告诉我如何以编程方式访问文件系统。 But I know that already...
但是我已经知道了...
You can access a simulator's filesystem at the below path: 您可以通过以下路径访问模拟器的文件系统:
~/Library/Developer/CoreSimulator/Devices
Choose the simulator folder correctly by checking the devices.plist
file at the above Path and open the correct simulator folder. 通过检查上述路径中的
devices.plist
文件,正确选择模拟器文件夹,然后打开正确的模拟器文件夹。 You can find the app data at data/Containers
path inside the simulator folder. 您可以在模拟器文件夹内的
data/Containers
路径中找到应用程序数据。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.