Desktop

OpenSC

  • Flutter
  • Dart
  • Objective-C
  • macOS

Project overview

A macOS menu-bar app that gives the iOS Simulator a working camera, so you can test camera features without hunting for a physical device.

Developer tool, open source

The problem
The iOS Simulator has no camera, so testing anything that scans, records or takes photos gets awkward without a physical device.
My part
I built the macOS app and its Flutter UI, and wired it to a native hook that supplies the camera.
How I approached it
  • A menu-bar app with a Studio window where you pick a video, image, webcam, screen, QR code or test pattern as the camera source.
  • Separate framing controls for the front and back cameras: fit, zoom, pan, rotation and mirroring.
  • A native Objective-C hook at the AVFoundation level, so camera packages in the app under test need no changes.
Where it landed
Source is public on GitHub, with setup steps and a note on how an already-running app reconnects.

the specifics

  • 01

    Feeds a video, image, Mac webcam, screen, QR code or test pattern into an iOS Simulator camera session.

  • 02

    Frames the front and back cameras independently: fit mode, zoom, pan, rotation and mirroring.

  • 03

    Live preview in the Studio window and a menu-bar popover. It detects booted simulators and sets up the camera loader automatically.

  • 04

    Works through a native AVFoundation hook, so camera packages in the app under test need no changes.

OpenSC: repository card on GitHub, bijithpn/opensimcam_studio

The camera loader builds on SimCamHook, and its licence sits in the repository.

Building something like this?

Tell me what you have in mind, or what needs fixing. A few lines is enough to start.

next project AI Motion FX