Modeling Accelerometers, Microphones, and Cameras in Xcode

Is it possible to simulate motion (for example, accelerometers), a microphone and a camera in the Xcode simulator?

If so, how do you do it?

If not, are there any Xcode add-ons or third-party apps that do this? (besides downloading to a real iPhone, of course).

Thanks in advance!

+4
source share
4 answers

The easiest way I've found this is to use the Wavefront Accelerometer Data Application , which can be found on the App Store. All you have to do is add one file to the application, then you can use the accelerometer on your iPhone or iPod touch to send data to your application in the simulator. You will need a WiFi connection and a device to use.

You may find a solution that works on your desktop, but you won’t get accurate real-life readings.

I would recommend getting the actual device, or your application may behave differently than you expect. If this is a serious attempt, you should be able to justify the cost of the device. The iPod Touch is much cheaper, but you don't get the capabilities of a phone or camera. You can get a headset with a microphone.

These are limitations, I do not consider it appropriate to develop the application without testing it on the device. I came across applications that constantly crash and draw it, because they go away with things in the simulator that you cannot do in the memory and restrictions on the device’s device.

+6
source

The microphone works in the simulator. It uses the standard mic input from your mac.

+1
source

Check out this link ....

http://media.wiley.com/product_data/excerpt/72/04705009/0470500972-1.pdf

and go to page 10.

However, iPhone Simulator, being a software simulator for a real device, has its limitations. Features not available for iPhone Simulator include: Getting location data - returns only a fixed coordinate, for example, Latitude 37.3317 North and longitude 122.0307 West

Making phone calls
Accelerometer access

Sending and receiving SMS messages

Install apps from the App Store
camera
Microphone

Several features of OpenGL ES

0
source

In the Android simulator, the hardware cannot be simulated .. but, for example, for the camera I see an approach to receiving real information ... Use your webcam .. for this you can receive frames with the application and send this data using the socket for simulator ... perhaps this can be done using the iPhone simulator.

I see this solution here

0
source

All Articles