Dwelgaz
Dwelgaz

Reputation: 83

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?

Upvotes: 6

Views: 1261

Answers (2)

Dan G Nelson
Dan G Nelson

Reputation: 932

Following DotNetWise's advice I also had to add the Location framework to get it to work.

Upvotes: 0

DATEx2
DATEx2

Reputation: 3514

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

Upvotes: 15

Related Questions