34

I am new to iOS application development and I am using XCode4. I am trying to develop an application which uses the camera. For testing is there a way to integrate the built in camera of mac book to iOS simulator..?

Thanks.

Bathiya Priyadarshana
  • 1,325
  • 6
  • 22
  • 35

2 Answers2

56

You cannot use mac book's camera. For camera, you need to test it on a device.

From Apple documentation,

The following hardware is not supported in Simulator:

  • Ambient light sensor
  • Audio input, except for using Siri by choosing Hardware > Siri.
  • Barometer
  • Bluetooth
  • Camera
  • Motion support (accelerometer and gyroscope)
  • Proximity sensor

Ref: Apple documentation reference

sElanthiraiyan
  • 6,000
  • 1
  • 31
  • 38
5

You can now use a USB web camera on a M1 chip Mac mini or the native camera on a M1 chip MacBookPro running Big Sur and Xcode 13.1 with the simulator for iPad.xib iOS applications that need a camera! Choose the device tab "My Mac (designed for iPad)"

Hammock
  • 141
  • 1
  • 5