Branch
Branch

Reputation: 387

Apple Mach-O Linker Errors

I was wondering what I should do to fix these linker errors...

Ld ... normal armv7
cd ...
setenv IPHONEOS_DEPLOYMENT_TARGET 7.0
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -L...-esjhccmwalrxrdfeduounwwkhaef/Build/Products/Debug-iphoneos -F ...-esjhccmwalrxrdfeduounwwkhaef/Build/Products/Debug-iphoneos -filelist ...-esjhccmwalrxrdfeduounwwkhaef/Build/Intermediates/... -dead_strip -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=7.0 -framework AVFoundation -framework UIKit -framework Foundation -framework CoreGraphics -Xlinker -dependency_info -Xlinker ...

Undefined symbols for architecture armv7:
  "_kCVPixelBufferPixelFormatTypeKey", referenced from:
  -[MyAVController setupCapture] in AVController.o
  "_CATransform3DIdentity", referenced from:
  -[MyAVController setupCapture] in AVController.o
  "_CMSampleBufferGetImageBuffer", referenced from:
  -[MyAVController captureOutput:didOutputSampleBuffer:fromConnection:] in AVController.o
  "_kCAGravityResizeAspectFill", referenced from:
  -[MyAVController setupCapture] in AVController.o
  "_CVPixelBufferLockBaseAddress", referenced from:
  -[MyAVController captureOutput:didOutputSampleBuffer:fromConnection:] in AVController.o
  "_CVPixelBufferGetWidth", referenced from:
  -[MyAVController captureOutput:didOutputSampleBuffer:fromConnection:] in AVController.o
  "_CVPixelBufferGetBytesPerRow", referenced from:
  -[MyAVController captureOutput:didOutputSampleBuffer:fromConnection:] in AVController.o
  "_CVPixelBufferGetBaseAddress", referenced from:
  -[MyAVController captureOutput:didOutputSampleBuffer:fromConnection:] in AVController.o
  "_CATransform3DRotate", referenced from:
  -[MyAVController setupCapture] in AVController.o
  "_OBJC_CLASS_$_CALayer", referenced from:
  objc-class-ref in AVController.o
  "_CVPixelBufferGetHeight", referenced from:
  -[MyAVController captureOutput:didOutputSampleBuffer:fromConnection:] in AVController.o
  "_CVPixelBufferUnlockBaseAddress", referenced from:
  -[MyAVController captureOutput:didOutputSampleBuffer:fromConnection:] in AVController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I know I need to add some framework, but I can't figure out what.

If you need any additional info, I can provide it. Thanks!

Upvotes: 0

Views: 718

Answers (2)

Coldsteel48
Coldsteel48

Reputation: 3512

Seems like you didn't import frameworks if you don't know how to do so here is a step by step guide

Yous should add CoreVideo , CoreMedia frameworks and AVFoundation.

http://thinketg.com/xcode-4-tips-adding-frameworks-to-your-project/

Upvotes: 1

Aaron Wojnowski
Aaron Wojnowski

Reputation: 6480

Looks like you're forgetting to import some frameworks into your project: namely the AVFoundation framework.

Upvotes: 2

Related Questions