Search code examples
ios4ios-simulatormpmusicplayercontrolleraudio-player

music player in iphone simulator 4.2


I am trying to add music player to my iphone app using the MediaPlayer framework. I dont have a real device with me and want to test it on simulator. But, the simulator doesnt support MPMusicPlayer and crashes when i run the add media app.
Is there a way I could test MPMusicPlayer on simulator?


Solution

  • You can't add music to the simulator so MPMusicPlayer will fail. It will have to be tested on a device.