Xcode-beta (9M174d): MPVolumeView Crashes in AVFigEndpointPickerOutputContextImpl in iOS 11 Simulator
Originator: | wetzeal | ||
Number: | rdar://33466189 | Date Originated: | July 21 2017 |
Status: | Open | Resolved: | |
Product: | Developer Tools | Product Version: | Xcode-beta (9M174d) |
Classification: | Crash | Reproducible: | Always |
Summary: Running an application which instantiates an MPVolumeView crashes the iOS 11 simulator (Xcode 9 Beta 3). Steps to Reproduce: Run an app with the following code in an iOS 11 simulator: - (void)viewDidLoad { [super viewDidLoad]; _volumeView = [[MPVolumeView alloc] initWithFrame:CGRectMake(20, 50, 280, 50)]; [self.view addSubview:_volumeView]; } Expected Results: The app launches and shows a volume slider Observed Results: The app crashes with the following error: volumeview[15924:576769] [] <<<< AVOutputContext (FigEndpointPicker) >>>> +[AVFigEndpointPickerOutputContextImpl sharedAudioPresentationOutputContext]: Audio presentation output context not supported by FigEndpointPicker 2017-07-21 16:46:03.297523-0700 volumeview[15924:576770] [] <<<< AVOutputContext (FigEndpointPicker) >>>> +[AVFigEndpointPickerOutputContextImpl sharedAudioPresentationOutputContext]: Audio presentation output context not supported by FigEndpointPicker Version: Xcode 9 Beta 3 (9M174d), macOS 10.12.6 (16G29) Notes: This does not happen in simulators for earlier iOS versions. No crash occurs on a device running iOS 11 Beta 3, however no volume control is visible either.
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!