Apple now offers a native solution for using an iPhone as a webcam. The instructions can be found at https://support.apple.com/en-us/HT213244
Previous instructions are available here:
- Open camera.html on your phone
- Click "Capture Back" for back-facing camera
- Click "Full screen" to make the video feed full-screen. Optionally double tap on the video to completely fill the screen
- Enable airplane mode on your iPhone to disable push notifications
- Connect your iPhone to Mac using the lightning cable
- Download, install, and open OBS Studio
- Set the right canvas resolution in OBS Studio settings by clicking "Settings" and then "Video". "2436x1125" worked well for iPhone 11 Pro
- Add "Video Capture Device" as a new source in OBS studio by clicking + under sources. Use any name and select your phone as a device
- Start Virtual Camera by clicking "Start Virtual Camera"
- Your phone screen should be mirrored in Zoom, Google Meet, or others if you select "OBS Virtual Camera" as your camera