Those of you who are lucky owners of a Mac are able to register at the apple developer program for free and download several iPhone developer tools there. Also you can download a simulator for iPhone/iPad which probably works like a real iPhone/iPad. As ASP.NET developer I run Visual Studio in a VM. In my case VMWare Fusion. But how it´s possible to run my web application which is hosted in VM in the host system?
The Source Code is the same like the standard MVC Project type.
Before you start you have to turn off the windows firewall.
The last step is to set the VMWare networkconfiguration to "Bridged":
More about the subject Host System and network you will find here.
After finishing it´s useful to get a new IP address from DHCP (nearly every router use DHCP by default). This is possible by the commando line order "ipconfig/renew".
Now read the new IP Address with Windows and after this you are able to enter this on you Mac in every browser:
Doesn´t matter if you use Chrome with MacOSX:
The iPhone Simulator:
Or the iPad:
Possible! Breakpoints you define in VM will be put out if you, for example, enter the side with the iPad browser.
Generally this constellation works. If it´s always the best way to switch between VM and the simulator is the question. But of course it´s more comfortable than running a whole deployment.
If you don´t use VMWare Fusion can find the same settings in Parallels. I think both products are nearly the same anyway.