Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MonoTouch on Device - Vibrates at launch?

I just deployed my app to my iPhone for the first time. Every time it launches it vibrates before running, and it runs fine. The build is a Debug | iPhone one of my app.

Any ideas why it vibrates when it launches and how to stop that? It's definitely not something I coded up and I don't have any exceptions or issues when running in the simulator.

like image 509
Driss Zouak Avatar asked Feb 18 '10 16:02

Driss Zouak


2 Answers

The vibration happens when you build the application in debug mode, and run the application without a debugger waiting. The MonoTouch soft debugger vibrates to inform you that it couldn't find the debugger.

Running the app in Release | iPhone mode solves this.

like image 131
Eduardo Scoz Avatar answered Oct 23 '22 01:10

Eduardo Scoz


The number of vibrations is used to notify the user of a problem setting up debugging at startup. The full list (that will be maintained as we expand or modify it) is here:

http://monotouch.net/index.php?title=Documentation/Debugging

As of today:

Device Diagnostics

An application compiled with debug mode that has been deployed on the iPhone will try to contact MonoDevelop on startup on the IP address and port that MonoDevelop had at the time of the build.

If there is an error setting up the debugger, it will vibrate one of more times:

  • One vibration: The application was compiled with debugging support, but it is unable to reach MonoDevelop on the specified IP address and port to setup stdout/stderr
  • Two vibrations: It is unable to parse the address configured.
  • Three vibrations: Could not setup stdout/stderr to the application.
like image 3
miguel.de.icaza Avatar answered Oct 22 '22 23:10

miguel.de.icaza