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.
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.
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
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)"