UIImagePickerController stuck on compressing video on iOS10 simulator after selecting video

I had this application that always worked fine on iOS9, now I ported the quick code to 3.0 and added the necessary plist lines to get access to the photo library.
When you try to select a video (preloaded by dragging and dropping) from the camera roll using the UIImagePickerController on the simulator, it always gets stuck on “Video Compression” and does not call delegate method callbacks.

  @IBAction func videoFromLibrary(_ sender: UIBarButtonItem) { picker.allowsEditing = false picker.sourceType = .photoLibrary picker.mediaTypes = UIImagePickerController.availableMediaTypes(for: .photoLibrary)! picker.modalPresentationStyle = .popover present(picker, animated: true, completion: nil) picker.popoverPresentationController?.barButtonItem = sender } 

Using a real device, it works fine, it seems that this is an Apple error, I wonder if someone has this problem or I missed something to make UIImagePickerController work correctly again using the video on the simulator (or if there is a workaround )

+7
ios ios10 swift xcode8 uiimagepickercontroller
source share
2 answers

I had the same problem running on the iPhone 7 Plus simulator, but it seems to quit when I run it on the iPhone 6s Plus simulator. Maybe a bug in the simulator.

+5
source share

I ran into the same issue for iOS 10 for Xcode 8 and iPad Pro 12.9in Simulator.

If you are using iPad Pro 9.7in Simulator then it works. Good God, Apple, act straight!

0
source share

All Articles