Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Project not Built in Active Configuration - Xamarin/Xamarin.Form

I have downloaded Xamarin.Form sample projects from github https://github.com/xamarin/xamarin-forms-samples

Once I open any sample projects, it does not allow me to run on iOS Simulator.

Does any one know how to handle this problem. I am using Xamarin Studio on Mac Operating System.

enter image description here

enter image description here

enter image description here

UPDATE-1:

I have also found the following useful article regarding my issue http://crossplatform.io/2013/12/02/setting-the-active-configuration-in-xamarin-studio/

I chose TabbedPageDemo.iOS--> iOS|Debug then I could able to see iOS part, however it still does not give me an option of Set As Start Project

enter image description here

enter image description here

like image 873
casillas Avatar asked Nov 19 '14 22:11

casillas


4 Answers

SOLUTION

Options --> Configuration-->Configuration Mappings-->ProjectName.iOS-->Debug | iPhoneSimulator

Make sure to set it to Debug | iPhoneSimulator and NOT to Debug | iPhone

enter image description here

enter image description here

Now you could able to see Set As Startup Project option.

enter image description here

like image 70
casillas Avatar answered Nov 12 '22 15:11

casillas


In Xamarin Studio (I'm using 5.10.3), click on Project -> Active Configuration -> Debug | iPhoneSimulator

Xamarin Studio Set Active Configuration

like image 45
Fritz Lim Avatar answered Nov 12 '22 16:11

Fritz Lim


Solution for Visual Studio Mac 2017...

If the Configurations Mapping tab (as detailed in answers above) is not shown, then navigate to iOS > Options > Compiler

Set Configuration to Debug, and the Platform to iPhoneSimulatoras shown here...

enter image description here

Then, in the Run toolbar, change Debug to Debug|iPhone Simulator as shown below...

enter image description here

To

enter image description here

Now you're ready to go :)

like image 2
RumbleFish Avatar answered Nov 12 '22 15:11

RumbleFish


You do not need to mess around with configurations - Set As Startup Project is the resolution.

You can see from your screenshot that you have not selected a start up project.

like image 1
JordanMazurke Avatar answered Nov 12 '22 16:11

JordanMazurke