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!
Asked
Active
Viewed 171 times
0
-
Try to clean your project (^⌘C). – Tamás Sengel Oct 03 '17 at 11:40
-
@the4kman not working. – scourGINHO Oct 03 '17 at 11:43
-
Deleting Derived Data might be useful: https://stackoverflow.com/questions/38016143/how-to-delete-derived-data-in-xcode-8 https://stackoverflow.com/questions/38227783/how-to-delete-derived-data-in-xcode8 – Ahmad F Oct 03 '17 at 11:47
-
Not working too. @AhmadF – scourGINHO Oct 03 '17 at 11:56
1 Answers
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