将 iPod 或 iPhone 与 Cocoa 同步
我正在 Cocoa 中创建一个 iTunes 克隆(不要问为什么,这并不邪恶),并且我希望能够将我的 iPod 与它同步。这意味着:音乐、照片、视频和播客。我真的找不到任何东西,因为 Google 只显示有关 iPod touch 和 iPhone 编程的文章,但我实际上正在为 Mac OS X 创建桌面应用程序,而且我还希望能够同步点击式转盘 iPod。
是否有 API 或者我应该直接读写 USB 端口?
谁能帮助我吗?谢谢
I'm creating an iTunes clone in Cocoa (don't ask why, it's not evil) and I want to be able to sync my iPod with it. This means: music, photos, videos and podcasts. I couldn't really find anything, since Google only shows articles about iPod touch and iPhone programming, but I'm actually creating a desktop application for Mac OS X, and I also want to be able to sync click-wheel iPods.
Is there an API or should I read and write directly to the USB port?
Can anyone help me? Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Apple 小心翼翼地保护同步功能,并且不提供 API。据我所知,您甚至无法使用 iTunes 自动化来为您完成同步。
资源丰富的开源社区对协议进行了逆向工程,libimobiledevice 项目的存在是为了提供一个同步库基于 Linux 的系统。我不相信该库将构建在 OSX 上——它依赖于 Linux USB 架构——但如果您需要编写自己的同步库,它将为您提供一个了解协议和设备工作原理的良好起点。
Apple jealously guards sync capability and doesn't provide an API. As far as I know you can't even use iTunes automation to make it do the syncing for you.
Ever-resourceful, the open source community has reverse-engineered the protocols and the libimobiledevice project exists to provide a sync library for Linux-based systems. I don't believe the library will build on OSX -- it relies on the Linux USB architecture -- but if you need to write your own sync library, it will provide you with a good starting point to understand the protocol and device workings.