3 Replies Latest reply: Aug 11, 2012 4:46 AM by uwacsp
kanakas Level 1 Level 1



i wanted to use the kUTTypeImage for the camera but everytime i compiled it gives me error


Undefined symbols for architecture i386:

  "_kUTTypeImage", referenced from:

      -[AttachmentViewController takePhoto:] in AttachmentViewController.o


i already put


#import <MobileCoreServices/UTCoreTypes.h>


i'm not sure where is the error

Mac Pro, Mac OS X (10.6.8)
  • aracknido Level 1 Level 1



    Im thinking you probably already fixed this by compiling and running not by the simulator, but by a device instead. Thats how the errors and warnings disappeared from my app.


    Im guessing its got to do with the fact that the simulator has no camara so it has no use for compiling camera-related code, hence the error.

  • RipplingCreek Level 1 Level 1

    You need to add the "MobileCoreServices.framework" framework to your project.


    Under the target's "Build Phases" tab, expand the "Link Binary With Libraries" section, tap the "+" button, and add the above referenced framework.

  • uwacsp Level 1 Level 1

    No - see the answer from RipplingCreek - the simulator can use images from the library