STBY
STBY

Reputation: 209

iOS Undefined symbols for architecture i386

When I'm try to compile my project I get error. I added all required frameworks - AVFoundation,opencv and many other , but it don't help me.Here is few lines from this error:

     Undefined symbols for architecture i386:

  "_OBJC_CLASS_$_AVCaptureDevice", referenced from:
      objc-class-ref in MACaptureSession.o
  "_OBJC_CLASS_$_AVCaptureDeviceInput", referenced from:
      objc-class-ref in MACaptureSession.o
  "_OBJC_CLASS_$_AVCaptureSession", referenced from:
      objc-class-ref in MACaptureSession.o
  "_OBJC_CLASS_$_AVCaptureStillImageOutput", referenced from:
      objc-class-ref in MACaptureSession.o
  "_OBJC_CLASS_$_AVCaptureVideoPreviewLayer", referenced from:
      objc-class-ref in MACaptureSession.o
  "_OBJC_CLASS_$_CABasicAnimation", referenced from:
      objc-class-ref in MAImagePickerFinalViewController.o
  "_OBJC_CLASS_$_CATransition", referenced from:
      objc-class-ref in MAImagePickerControllerAdjustViewController.o
      objc-class-ref in MAImagePickerController.o
  "_OBJC_CLASS_$_MPVolumeView", referenced from:
      objc-class-ref in MAImagePickerController.o
  "_kCATransition", referenced from:
      -[MAImagePickerControllerAdjustViewController confirmedImage] in MAImagePickerControllerAdjustViewController.o

Upvotes: 0

Views: 1074

Answers (3)

kkumpavat
kkumpavat

Reputation: 452

As suggested by Mani add required frameworks. If you have already added these frameworks and still getting error, set Build Active Architecture Only to NO under project 's Build Settings.

Upvotes: 0

madhu
madhu

Reputation: 981

check wheter the MACaptureSession MAImagePickerFinalViewController MAImagePickerControllerAdjustViewController MAImagePickerController.m have been added in target and check in respective m files,wheter implementation name is correct.

Upvotes: 1

iPatel
iPatel

Reputation: 47099

Just add CoreMedia.framework and with AVFoundation.framework to your project.

Got to.

Project -> target -> Build phases -> Link binary with library -> "+" -> select your frameworks

Upvotes: 2

Related Questions