ios 无需越狱 iPhone 即可访问 /var/mobile/Containers/Data/Application 中的文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/38064042/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Access files in /var/mobile/Containers/Data/Application without jailbreaking iPhone
提问by ZigZagZebra
A program logs some message in directory /var/mobile/Containers/Data/Application on iPhone. Is there any way I can get access to this directory without jailbreaking iPhone? If no, is there any directory on iPhone that I can log into and read my logs without jailbreaking?
程序在 iPhone 上的目录 /var/mobile/Containers/Data/Application 中记录一些消息。有什么方法可以在不越狱 iPhone 的情况下访问此目录?如果没有,iPhone 上是否有任何目录可以让我在不越狱的情况下登录并阅读我的日志?
回答by Rob
If this is your app, if you connect the device to your computer, you can use the "Devices" option on Xcode's "Window" menu and then download the app's data container to your computer. Just select your app from the list of installed apps, and click on the "gear" icon and choose "Download Container".
如果这是您的应用程序,如果您将设备连接到计算机,则可以使用 Xcode 的“窗口”菜单上的“设备”选项,然后将应用程序的数据容器下载到您的计算机。只需从已安装的应用程序列表中选择您的应用程序,然后单击“齿轮”图标并选择“下载容器”。
Once you've downloaded it, right click on the file in the Finder and choose "Show Package Contents".
下载后,右键单击 Finder 中的文件,然后选择“显示包内容”。