Xamarin Forms Startup Project

I am creating a Xamarin Forms app for Android and iOS.

How to set up iOS as a startup project? I read that let's assume you are correct and set it as a startup project. But I can't find an option?

enter image description here

Please help me.

+3


source to share


3 answers


You need to change the configuration parameters to whatever you have connected. This happens if you originally debugged directly on an iPhone connected to your Mac and now the iPhone is gone. Xamarin Studio does not automatically switch to the iPhone Simulator when no device is detected, but instead removes the use of that project as a startup.

To fix, do the following:

  • Right click on the iOS project and select "Options"
  • Under "Build-> Output" select "All Configurations" from the dropdown
  • Select "iPhone Simulator" from the Platform dropdown
  • Click "OK" to save


Now in the top left corner of Xamarin Studio, where you can install Debug or Release, make sure you install it in Debug | iPhoneSimulator and NOT Debugging | iPhone

... and only then will you be able to select "Set as Launch Project".

+10


source


So much depends on your operating system and what environment you are using. If you are on Xamarin Studio on Mac, right clicking should work fine. Can you give us a little more information?



0


source


  • Do you have Apple's XCode and iOS SDK? Do you have an iOS development account? You need both of these things, then click on project options and select a development account to use in the project.

  • You may not have an iOS license and cannot run an iOS project at all, although in such cases on my machine the project is grayed out and clearly marked.

  • Are you on Windows? If so, you won't be able to run iOS projects. Shortcut labels point to Mac, as does the context menu shape.

Could you run any iOS projects? Try creating a new empty solution with just an iOS project to see if it works.

  • Chances are there is a bug with Xamarin localization in your language (Swedish?) Try switching your language to US / English and file a bug with Xamarin, or at least email them.

enter image description here

0


source







All Articles