Can I add a music library to the Xcode iOS Simulator?

后端 未结 2 755
面向向阳花
面向向阳花 2020-12-30 04:05

I\'m trying to create a music player for iPhone and iPad. I get it working perfectly on my iPhone and iPad because those actually have a music library. However I want to use

2条回答
  •  既然无缘
    2020-12-30 04:25

    so I need to be able to see/add a music library to my simulator as well

    You cannot do so. MPMediaLibrary APIs do not work on the simulator.

    You can test your interface on the simulator by writing stub methods that stand between your code and the MPMediaLibrary APIs, but actual access to the user's music library is possible only on a device.

提交回复
热议问题