我正在尝试一些代码来使用模拟器打开 iPod 库,但应用程序因以下错误而崩溃:
MPMediaLibrary: Unable to launch iPod library server: application not found
我需要一台实际的 iPhone 来测试此代码吗?
最佳答案
我在模拟器上使用 MPMediaLibrary
/MPMediaQuery
取得了一些成功(不播放音乐,但至少能够查询项目)和 xcode 4.6.3
我用了iFunBox从我的设备复制这些文件:
'Raw File System'/iTunes_Control/iTunes/MediaLibrary.sqlitedb
'Raw File System'/iTunes_Control/iTunes/MediaLibrary.sqlitedb-shm
'Raw File System'/iTunes_Control/iTunes/MediaLibrary.sqlitedb-wal
'Raw File System'/iTunes_Control/iTunes/Artwork
到我的 mac 文件夹中:
"~/Library/Application Support/iPhone Simulator/6.1/Media/iTunes_Control/iTunes/"
关于iphone - 我可以在模拟器上访问 iPod 库吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3159716/