Skip to content

Commit b9bc101

Browse files
committed
feat(ios): remove simulator camera restriction
Remove the compile-time check that throws `notAvailableOnSimulator` error on iOS simulators. This enables camera functionality with tools like RocketSim that provide virtual camera support in the iOS Simulator. The error type is preserved for backwards compatibility.
1 parent 0d7b939 commit b9bc101

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

package/ios/Core/CameraSession+Configuration.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ extension CameraSession {
2424
}
2525
videoDeviceInput = nil
2626

27-
#if targetEnvironment(simulator)
28-
// iOS Simulators don't have Cameras
29-
throw CameraError.device(.notAvailableOnSimulator)
30-
#endif
31-
3227
guard let cameraId = configuration.cameraId else {
3328
throw CameraError.device(.noDevice)
3429
}

0 commit comments

Comments
 (0)