Henrik Carlsson's Blog

kUTTypeImage is defined in MobileCoreServices.framework

This gets me every time I try to create a sharing extension for iOS. I follow along with the WWDC session ”Creating Extensions for iOS and OS X, Part 1” from 2014 and when I encounter this line, I get an error:

The problem is that kUTTypeImage is unknown to Xcode. The solution is to import MobileCoreServices.framework.

(For more on this, check out this StackOverflow thread.

Posted by Henrik on

Inga kommentarer

with permalink

Want to comment?

You can do so in a couple of ways:

Vill du kommentera?

Det kan du göra på ett par olika sätt: