Symbol not found: kUTTypeImage
When use with UIDocumentPickerViewController
do:
import MobileCoreServices
let type = String(kUTTypeImage)
let documentPickerViewController = UIDocumentPickerViewController(documentTypes: [type], in: .import)
Obligatory Swift answer:
import MobileCoreServices
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.