我最近更新到Xcode 9,当我构建我的应用程序时,出现Apple Mach-0连接器(iD)错误。在更新项目之前工作得很好。错误看起来像这样:更新到Xcode 9带有错误
Undefined symbols for architecture arm64:
"__T0So22AVCapturePhotoSettingsC12AVFoundation01_abC16SwiftNativeTypesACWP", referenced from:
__T09Lifelapse20CameraViewControllerC14capturePictureyyF in CameraViewController.o
"__T012AVFoundation39_AVCapturePhotoSettingsSwiftNativeTypesPAAE016availablePreviewc11PixelFormatG0SaySo8NSNumberCGfg", referenced from:
__T09Lifelapse20CameraViewControllerC14capturePictureyyF in CameraViewController.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我不知道如何解决这个错误,谢谢。
没有你清除缓存的XCode或清除特定项目** ** DerivedData。例如'rm -rf〜/ Library/Developer/Xcode/DerivedData /' –
感谢您的快速回复。刚从项目中删除派生的数据,仍然显示3个错误。 –
另外,如果使用第三方库,可能没有使用正确的手臂选项。 – ghostatron