I noticed that there is software (such as iExplorer) that allows you to access files on an iPhone-device from your Mac.
我注意到有一些软件(例如iExplorer)允许您从Mac访问iPhone设备上的文件。
Now my question is: How can I access iPhone files via Objective-c?
现在我的问题是:如何通过Objective-c访问iPhone文件?
This is only for educational purposes.
这仅用于教育目的。
I found this: https://github.com/Chronic-Dev/libirecovery but I'm not sure if I'm on the right track.
我发现了这个:https://github.com/Chronic-Dev/libirecovery但我不确定我是否在正确的轨道上。
3 个解决方案
#1
6
So it seems that you're looking for an API which makes it possible to access the filesystem of the iPhone from a computer. Well, this API exists, and it's called the MobileDevice framework.
因此,您似乎正在寻找一种能够从计算机访问iPhone文件系统的API。好吧,这个API存在,它被称为MobileDevice框架。
#2
0
Unfortunately, there's no easy or legal way to access files on your iPhone, especially through Objective-C.
The applications installed on iOS are sandboxed, which means they can only access files in their own directory tree; they have no access/knowledge of other files.
Like you said, you can access files using software like iExplorer, but not programmatically from the iPhone itself.
不幸的是,没有简单或合法的方法来访问iPhone上的文件,特别是通过Objective-C。安装在iOS上的应用程序是沙箱,这意味着它们只能访问自己的目录树中的文件;他们无法访问/了解其他文件。就像你说的,你可以使用像iExplorer这样的软件访问文件,但不能通过iPhone本身以编程方式访问文件。
#3
0
Here is an old project to browse the iphone. You may be able to get some pointers from it on building an application to do the same with the latest info.
这是一个浏览iPhone的旧项目。您可以从构建应用程序中获得一些指示,以便对最新信息执行相同的操作。
http://code.google.com/p/iphonelist/
http://code.google.com/p/iphonelist/
Couple that with carbonic acid's post about the Mobile Device Framework and you should be able to do some good stuff.
结合碳酸的关于移动设备框架的帖子,你应该能够做一些好事。
if I find more unique info ill post it here.
如果我发现更多独特信息,请在此处发布。
#1
6
So it seems that you're looking for an API which makes it possible to access the filesystem of the iPhone from a computer. Well, this API exists, and it's called the MobileDevice framework.
因此,您似乎正在寻找一种能够从计算机访问iPhone文件系统的API。好吧,这个API存在,它被称为MobileDevice框架。
#2
0
Unfortunately, there's no easy or legal way to access files on your iPhone, especially through Objective-C.
The applications installed on iOS are sandboxed, which means they can only access files in their own directory tree; they have no access/knowledge of other files.
Like you said, you can access files using software like iExplorer, but not programmatically from the iPhone itself.
不幸的是,没有简单或合法的方法来访问iPhone上的文件,特别是通过Objective-C。安装在iOS上的应用程序是沙箱,这意味着它们只能访问自己的目录树中的文件;他们无法访问/了解其他文件。就像你说的,你可以使用像iExplorer这样的软件访问文件,但不能通过iPhone本身以编程方式访问文件。
#3
0
Here is an old project to browse the iphone. You may be able to get some pointers from it on building an application to do the same with the latest info.
这是一个浏览iPhone的旧项目。您可以从构建应用程序中获得一些指示,以便对最新信息执行相同的操作。
http://code.google.com/p/iphonelist/
http://code.google.com/p/iphonelist/
Couple that with carbonic acid's post about the Mobile Device Framework and you should be able to do some good stuff.
结合碳酸的关于移动设备框架的帖子,你应该能够做一些好事。
if I find more unique info ill post it here.
如果我发现更多独特信息,请在此处发布。