I am using iOS MediaPlayer.frameworkto retrieve data about the iTunes user library. I do this using the following code:
MPMediaQuery * allSongsQuery = [MPMediaQuery songsQuery];
NSArray * songsData = [allSongsQuery items];
None of my codes are calling NSLog, however I can see that the Media Player environment logs a lot during this request:
{MediaLibrary} Database validation succeeded
{MediaLibrary} Rolling back transaction.
{MediaLibrary} Rolling back transaction.
{MediaLibrary} Rolling back transaction.
{MediaLibrary} Rolling back transaction.
{MediaLibrary} Rolling back transaction.
... (continues on another 200 times)
Although this does not affect the execution of my application, it is incredibly annoying when debugging. Is there a way to stop the Media Player framework?
source
share