Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 9 GM undefined symbols for architecture arm64

In Xcode 9's GM release, I am getting some compile-time errors for undefined symbols for architecture arm64, namely for AVFoundation with:

  • AVCapturePhotoOutput().supportedFlashModes
  • AVCapturePhotoSettings().availablePreviewPhotoPixelFormatTypes

In both cases, using their "undocumented" __supportedFlashModes/__availablePreviewPhotoPixelFormatTypes builds just fine.

  1. Has anybody encountered the same issues in other frameworks?
  2. API does not document such breaking changes, is this a bug?
like image 441
Herakleis Avatar asked Oct 18 '22 06:10

Herakleis


1 Answers

They were "inadvertently" marked private. Should be reverted with next release I guess? Workaround above is recommended by Apple.

Official response

like image 86
Herakleis Avatar answered Oct 21 '22 00:10

Herakleis