mapbox-gl-native icon indicating copy to clipboard operation
mapbox-gl-native copied to clipboard

iOS: Undefined symbols _kUTTypePNG

Open picciano opened this issue 11 years ago • 3 comments

I have built the library and created a new project. I added the required libraries, but am getting a build error:

Undefined symbols for architecture x86_64: "_kUTTypePNG", referenced from:

I fixed this on the device by including the Imageio.framework, but the simulator build still reports the error.

Any thoughts?

screen shot 2015-03-09 at 5 02 56 pm

picciano avatar Mar 09 '15 23:03 picciano

It looks like this might be because MobileCoreServices.framework isn't linked?

friedbunny avatar Mar 10 '15 02:03 friedbunny

The demo app's Build Settings → Linking → Other Linker Flags includes it:

-lpthread -ldl -framework CoreGraphics -framework CoreLocation -framework ImageIO -framework GLKit -framework MobileCoreServices -framework OpenGLES -framework SystemConfiguration -framework UIKit -framework Foundation -lpthread -ldl -lpthread -ldl -lpthread -ldl -lsqlite3 -lz

friedbunny avatar Mar 10 '15 02:03 friedbunny

Adding MobileCoreServices fixed it. Resolved. Thanks.

picciano avatar Mar 10 '15 12:03 picciano