Skip to content

feat(ios): remove simulator camera restriction#3707

Open
yocontra wants to merge 1 commit intomrousavy:mainfrom
yocontra:feat/support-simulator-camera
Open

feat(ios): remove simulator camera restriction#3707
yocontra wants to merge 1 commit intomrousavy:mainfrom
yocontra:feat/support-simulator-camera

Conversation

@yocontra
Copy link

@yocontra yocontra commented Jan 30, 2026

Summary

  • Removes the compile-time #if targetEnvironment(simulator) check that throws CameraError.device(.notAvailableOnSimulator)
  • Removes the now-unused DeviceError.notAvailableOnSimulator error case
  • Enables camera functionality with tools like RocketSim that provide virtual camera support in the iOS Simulator

Motivation

Tools like RocketSim now support virtual cameras in the iOS Simulator, making it possible to test camera functionality without a physical device. The current restriction prevents this useful development workflow.

Test plan

  • Build and run on iOS Simulator with RocketSim virtual camera enabled
  • Verify camera functionality works as expected

@vercel
Copy link

vercel bot commented Jan 30, 2026

@yocontra is attempting to deploy a commit to the mrousavy's Team Team on Vercel.

A member of the Team first needs to authorize it.

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.

Also removes the now-unused `DeviceError.notAvailableOnSimulator` case.
@yocontra yocontra force-pushed the feat/support-simulator-camera branch from b9bc101 to 51c9ed2 Compare January 30, 2026 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant