Post

Replies

Boosts

Views

Activity

Reply to Undefined symbols for supportedFlashModes in AVCapturePhotoOutput
There is a regression of this bug, it's reproducible in Xcode 12.0 (12A7209), but only when targeting the simulator. It works fine for a real device. Here's an example workaround that I'm using in Swift 5.3: #if targetEnvironment(simulator) let pixelFormat = photoSettings.__availablePreviewPhotoPixelFormatTypes.first! #else let pixelFormat = photoSettings.availablePreviewPhotoPixelFormatTypes.first! #endif // make use of `pixelFormat`
Sep ’20