我最近更新到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