diff --git a/package/ios/Core/CameraError.swift b/package/ios/Core/CameraError.swift index 983568929c..182b48f2ce 100644 --- a/package/ios/Core/CameraError.swift +++ b/package/ios/Core/CameraError.swift @@ -76,7 +76,6 @@ enum DeviceError { case microphoneUnavailable case lowLightBoostNotSupported case focusNotSupported - case notAvailableOnSimulator case pixelFormatNotSupported(targetFormats: [FourCharCode], availableFormats: [FourCharCode]) var code: String { @@ -95,8 +94,6 @@ enum DeviceError { return "low-light-boost-not-supported" case .focusNotSupported: return "focus-not-supported" - case .notAvailableOnSimulator: - return "camera-not-available-on-simulator" case .pixelFormatNotSupported: return "pixel-format-not-supported" } @@ -118,8 +115,6 @@ enum DeviceError { return "The currently selected camera device does not support focusing!" case .microphoneUnavailable: return "The microphone was unavailable." - case .notAvailableOnSimulator: - return "The Camera is not available on the iOS Simulator!" case let .pixelFormatNotSupported(targetFormats: targetFormats, availableFormats: availableFormats): let tried = targetFormats.map { $0.toString() } let found = availableFormats.map { $0.toString() } diff --git a/package/ios/Core/CameraSession+Configuration.swift b/package/ios/Core/CameraSession+Configuration.swift index ecd2a94daf..dbad6b45c7 100644 --- a/package/ios/Core/CameraSession+Configuration.swift +++ b/package/ios/Core/CameraSession+Configuration.swift @@ -24,11 +24,6 @@ extension CameraSession { } videoDeviceInput = nil - #if targetEnvironment(simulator) - // iOS Simulators don't have Cameras - throw CameraError.device(.notAvailableOnSimulator) - #endif - guard let cameraId = configuration.cameraId else { throw CameraError.device(.noDevice) }