Can't profile an app on device that uses MediaPlayer framework
| Originator: | BenSThomas | ||
| Number: | rdar://11827305 | Date Originated: | 09-Jul-2012 07:48 AM |
| Status: | Duplicate/11745434 | Resolved: | |
| Product: | Instruments | Product Version: | 4.5 |
| Classification: | Reproducible: | ALWAYS |
Summary:
I created a simple app to display the artwork of the current playing song and it runs fine on the device when I Run in Xcode. When I try to profile the app with Xcode, the app launches but no artwork is displayed.
Steps to Reproduce:
1. Create a sample Single View app with Xcode 4.5 DP2.
2. Add the following code to the view controller:
UIImageView *iv = [[UIImageView alloc] initWithFrame:CGRectMake(0,0,768,768)];
MPMusicPlayerController *player = [MPMusicPlayerController iPodMusicPlayer];
MPMediaItem *item = [player nowPlayingItem];
MPMediaItemArtwork *artwork = [item valueForProperty:MPMediaItemPropertyArtwork];
iv.image = [artwork imageWithSize:CGSizeMake(500,500)];
[self.view addSubview:iv];
3. Attempt to Profile using Xcode, and select Allocations when Instruments launches.
Expected Results:
Artwork of the current playing song should be displayed on the iPad. (iPad 3 64GB 4G, iOS 6 Beta 2)
Actual Results:
I just see the default white view filling the screen.
I observed the same problem with iOS 6 beta 1 and Xcode 4.5 DP 1.
Regression:
Artwork *is* displayed on an iOS 5 iPad with Xcode 4.3.5.
Notes:
09-Jul-2012 07:48 AM Ben Thomas:
'ios6ProfileTest.zip' was successfully uploaded
09-Jul-2012 07:49 AM Ben Thomas:
Note that I have verified that music is playing at the time that I run the app.
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!