0

I have the following problem - I am getting a bunch of errors when I try to run my app using Xcode 9 and Swift 3.2. I have no idea what's wrong and will be very grateful if somebody gives me a hint about it. Thanks in advance!

enter image description here

scourGINHO
  • 699
  • 2
  • 12
  • 31

1 Answers1

0

OK, I finally found what's wrong. The problem is that some of the AVFoundation APIs are temporarily not working.

AVCaptureDevice.Format.supportedColorSpaces
AVCaptureDevice.supportedFlashModes
AVCapturePhotoOutput.availablePhotoPixelFormatTypes
AVCapturePhotoOutput.availableRawPhotoPixelFormatTypes
AVCapturePhotoSettings.availablePreviewPhotoPixelFormatTypes

As a workaround, use the SwiftPrivate versions of these API by prepending each API with double underscore (__). For example, change AVCaptureDevice.Format.supportedColorSpaces to AVCaptureDevice.Format.__supportedColorSpaces.

scourGINHO
  • 699
  • 2
  • 12
  • 31