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 )
ios ios10 swift xcode8 uiimagepickercontroller
Andrea
source share