我可以使用 Xcode 访问我的 iPhone 的文件系统吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8069827/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 22:22:49  来源:igfitidea点击:

Can I access filesystem of my iPhone using Xcode?

iphonexcode

提问by WASD42

Is there any way to get access directly to the filesystem of iPhone connected to my Mac using Xcode?

有什么方法可以使用 Xcode 直接访问连接到我的 Mac 的 iPhone 的文件系统?

Please keep in mind that the question is NOT about accessing filesystem from application (which is not possible outside of the application's sandbox) but about accessing it from Xcode.

请记住,问题不在于从应用程序访问文件系统(这在应用程序的沙箱之外是不可能的),而是关于从 Xcode 访问它。

The actual problem is with data on my iPhone which was somehow corrupted while developing several applications. The problem becomes even more stupid because of corrupted data being copied while doing backups and restoring system from it.

实际问题是我的 iPhone 上的数据在开发多个应用程序时以某种方式损坏了。由于在备份和从中恢复系统时复制损坏的数据,问题变得更加愚蠢。

Maybe there are other ways to access device's filesystem without jailbreak?

也许还有其他方法可以在不越狱的情况下访问设备的文件系统?

回答by

Connect your iPhone and fire up Xcode. Open the Organizer and select your device, and then 'Applications'. You will now see a list of applications that should look familiar to you ;)

连接你的 iPhone 并启动 Xcode。打开管理器并选择您的设备,然后选择“应用程序”。您现在将看到您应该熟悉的应用程序列表;)

Select an app and click 'Download' at the bottom of Organizer.

选择一个应用程序,然后单击管理器底部的“下载”。

If you wait long enough, you can even see the files down in 'Data files in sandbox'.

如果您等待的时间足够长,您甚至可以在“沙箱中的数据文件”中查看文件。