Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cordova 3.5 iOS - Xcode Apple Mach-O Linker error for CDVCamera

I'm encountering an error during the build phase of my cordova (3.5) project:

Undefined symbols for architecture i386:
"_CGImageDestinationAddImageFromSource", referenced from:
  -[CDVCamera imagePickerControllerReturnImageResult] in CDVCamera.o
... and 15 more of those

A lot of posts noted, that i have to add the CDVCamera.m file into the compile sources section. Without the entry i don't get the error... obviously my app won't be able to use the camera in that case. I tried different versions of the plugin, but nothing changed.

Is there something i may have forgotten?

like image 848
Dwelgaz Avatar asked Sep 10 '14 17:09

Dwelgaz


1 Answers

I have had the same issue and I have managed to fix it from xcode: Select Target In Build Phases > Link Binary With Libraries you should add ImageIO.framework and CoreGraphics.framework

An image with my settings: http://screencast.com/t/rsxZrUkyslAY

like image 185
Adaptabi Avatar answered Oct 06 '22 00:10

Adaptabi