Free and open source

A camera for the
iOS Simulator.

Your app's camera code runs unmodified in the Simulator, through Apple's own AVFoundation.

npx stuntcam up
Works with
  • Native iOS
  • React Native
  • Expo
  • Flutter
Needs
  • Apple silicon Mac
  • Xcode 27
  • iOS 17.5–27.2

Your app gets

  • Live previewFront and back cameras
  • PhotosJPEG and HEIC, with EXIF
  • Video + audio1080p and 4K, AAC audio
  • QR & EAN-13Metadata output and Vision
  • Webcam, image or videoOr the built‑in test scene

Compared

stuntcamSimCamserve-simbaguetteMeta idbRocketSim
Real AVFoundationYesNoNoNoNoNo
FreeYesNo, $19YesYesYesNo, Pro $9.99/mo
Live webcamYesYesYesYesNoYes
Image or videoYesYesYesYesPartly, Video onlyNo
Audio in videoYesNot in their docsNoNoNoNo
BarcodesYesYesNoNoNoYes

How it works

iPhonethe real thing

Your app
AVFoundationApple's code
Camera

Yes: Real AVFoundation

stuntcamin the Simulator

Your app
AVFoundationApple's code
stuntcamas the camera

Yes: Same path as iPhone

Most other toolsserve-sim, baguette, Meta idb

Your app
AVFoundationImitation
Webcam or file

No: Imitation

Get started

Install and run

React Native / Expo
npx stuntcam up, then npx expo run:ios
Xcode
npx stuntcam up --udid <simulator> with the simulator shut down (or npx stuntcam up --reboot if it is already booted), then Run (⌘R) in Xcode as usual
Flutter
npx stuntcam up, then flutter run
Tests & CI
npx stuntcam up --udid $SIM --grant com.example.app, then npx stuntcam exec -- xcodebuild test -scheme MyApp -destination "platform=iOS Simulator,id=$SIM"
Use your own picture
npx stuntcam source image:/path/photo.png (or video:/path/clip.mov)
Show a QR code
npx stuntcam source qr:'https://example.com'
Turn it off
npx stuntcam down (no reboot)
Camera not showing?
npx stuntcam doctor