简体   繁体   中英

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?

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

按照DotNetWise的建议,我还必须添加Location框架才能使它工作。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM