Symbol not found: kUTTypeImage
Look up the symbol (kUTTypeImage
) and locate the image/library it should exist in (MobileCoreServices.framework
in this case). Then link your binary with that framework.
When use with UIDocumentPickerViewController
do:
import MobileCoreServiceslet type = String(kUTTypeImage)let documentPickerViewController = UIDocumentPickerViewController(documentTypes: [type], in: .import)