Symbol not found: kUTTypeImage Symbol not found: kUTTypeImage ios ios

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.


Obligatory Swift answer:

import MobileCoreServices


When use with UIDocumentPickerViewController do:

import MobileCoreServiceslet type = String(kUTTypeImage)let documentPickerViewController = UIDocumentPickerViewController(documentTypes: [type], in: .import)