[swift-users] Toolchain 07/29

Charles Lane clane_47 at bellsouth.net
Sun Jul 31 15:07:57 CDT 2016


With Xcode Beta 3 and toolchain 07/29 the following line will cause a segmentation fault 11:

func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String: Any]) {
        …
        …
        dismiss(animated: true)
    }


You have to leave this: [String: Any] as [String: AnyObject] and mark the func as @nonobc to stop the warning and stop the segmentation fault.




More information about the swift-users mailing list