Xcode 错误 - 架构 x86_64 的未定义符号? [英] Xcode Error - Undefined symbols for architecture x86_64?
本文介绍了Xcode 错误 - 架构 x86_64 的未定义符号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在运行 Swift 4 和 Xcode 9 测试版.我收到此错误,但不知道如何解决.我什至不知道这是什么意思..
I'm running Swift 4 and Xcode 9 beta. I get this errors and I have no idea how to solve it. I don't even know what does that mean..
Undefined symbols for architecture x86_64:
"__T0So22AVCapturePhotoSettingsC12AVFoundation01_abC16SwiftNativeTypesACWP", referenced from:
__T014InstagramClone26CustomCameraViewControllerC23cameraBtn_TouchUpInsideyypF in CustomCameraViewController.o
"__T012AVFoundation39_AVCapturePhotoSettingsSwiftNativeTypesPAAE016availablePreviewc11PixelFormatG0Says6UInt32VGfg", referenced from:
__T014InstagramClone26CustomCameraViewControllerC23cameraBtn_TouchUpInsideyypF in CustomCameraViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
知道如何解决这个问题吗?
Any idea how to solve this?
推荐答案
就我而言,我调用了 settings = AVCapturePhotoSettings()
并且遇到了那个错误.
On my case, I've called settings = AVCapturePhotoSettings()
and I got that error.
最终解决方案是调用不同的初始化程序.即:
Eventually the solution was calling a different initialiser. i.e:
settings = AVCapturePhotoSettings(format: [AVVideoCodecKey : AVVideoCodecType.jpeg])
这篇关于Xcode 错误 - 架构 x86_64 的未定义符号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文