Cordoba iOS 3.5 - Xcode Apple Mach-O Linker Error for CDVCamera

I encounter 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 

It has been noted a lot of messages that I should add the CDVCamera.m file to the compilation sources section. Without recording, I do not get an error ... it is obvious that my application will not be able to use the camera in this case. I tried different versions of the plugin but nothing has changed.

Is there something that I may have forgotten?

+6
source share
2 answers

I had the same problem and managed to fix it from xcode: Choose a target In Build Phases > Link Binary With Libraries you have to add ImageIO.framework and CoreGraphics.framework

Image with my settings: http://screencast.com/t/rsxZrUkyslAY

+15
source

Following the advice of DotNetWise, I also had to add a Location structure to make it work.

0
source

Source: https://habr.com/ru/post/975081/


All Articles