我想知道如何解决这些链接器错误......
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)
我知道我需要添加一些框架,但我无法弄清楚是什么。
如果您需要任何其他信息,我可以提供。 谢谢!
答案 0 :(得分:2)
看起来您忘记将一些框架导入到您的项目中:即AVFoundation
框架。
答案 1 :(得分:1)
好像你没有导入框架 如果你不知道怎么做 这是一步一步的指南
Yous应该添加CoreVideo,CoreMedia框架和AVFoundation。
http://thinketg.com/xcode-4-tips-adding-frameworks-to-your-project/