Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xamarin Forms project set Startup Project

I'm building a Xamarin Forms application for Android and iOS.

How can i set iOS as startup project? I've read that your suppose to rightclick and set it as startup project. But i can't find the option?

enter image description here

Please help me.

like image 531
Lord Vermillion Avatar asked Dec 15 '22 20:12

Lord Vermillion


1 Answers

You need to change your configuration options to something you have connected. This happens if you were originally debugging directly on an iPhone connected to your Mac, and now the iPhone is gone. Xamarin Studio doesn't switch automatically to the iPhone Simulator when a device is not detected, instead removes the option to use that project as a startup project.

To fix, do this:

  1. Right click on the iOS project and go to Options
  2. Under Build->Output, select the "All Configurations" under the drop down
  3. Under the Platform drop down, select "iPhone Simulator"
  4. Click Ok to save

Now on the top left corner of Xamarin Studio where you can set Debug or Releas, make sure you set it to Debug | iPhoneSimulator and NOT to Debug | iPhone

... and only then, you'll be able to select "Set As Startup Project".

like image 150
Michel Triana Avatar answered Dec 17 '22 10:12

Michel Triana