MPMusicPlayerController behaves incorrectly and crashes when Music app deleted from device
| Originator: | s.alpieiev | ||
| Number: | rdar://32486853 | Date Originated: | May 31 2017, 6:47 PM |
| Status: | Open | Resolved: | |
| Product: | iOS+SDK | Product Version: | iOS 10.3.2 |
| Classification: | Crash | Reproducible: | Always |
Area: Media Player Framework Summary: [MPMusicPlayerController applicationMusicPlayer] doesn't work at all when Music app deleted from the device. Also it causes crashes when valid selectors are called, specifically it doesn't respond to 'skipToNextItem' and 'skipToPreviousItem' selectors. But if Music app installed, [[MPMusicPlayerController applicationMusicPlayer] respondsToSelector:@selector(skipToNextItem)] always returns NO, although we can call these methods successfully. Steps to Reproduce: 1. Sync some songs to the device through iTunes 2. Uninstall Music app 3. Run attached sample project that demonstrates this issue Expected Results: At least [MPMusicPlayerController applicationMusicPlayer] should work even if Music app uninstalled and should not crash when we're calling valid selectors Observed Results: [MPMusicPlayerController applicationMusicPlayer] doesn't work at all when Music app uninstalled and crashes when calling 'skipToNextItem' and 'skipToPreviousItem' selectors Version: iOS 10.3
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!