Search code examples
iosiphonexcodexcode4xcode15

Using mac book built in camera with iOS simulator


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.


Solution

  • 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