我想知道如何解决这些链接器错误...
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)
我知道我需要添加一些框架,但是我不知道要做什么。
如果您需要任何其他信息,我可以提供。
谢谢!
最佳答案
好像您忘记了将一些框架导入到项目中一样:AVFoundation
框架。
关于ios - Apple Mach-O链接器错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/20645749/