Error creating and launching Xamarin iOs application in visual studio 2015 preview

I am new to the Xamarin Cross Platform development. I am using Visual Studio 2015 Preview for development. I created a new solution for a mobile application, and it works correctly for both the Droid phone and Windows. But after successfully communicating with the iOS Build host, I got an error when I create an iOs application like -

Xamarin.iOS does not support starting or debugging a previous version of your project. Please make sure your solution is built before launching or debugging.

And also, when I click on View iOS Simulator, I got a host build error. Error: create a version issue. it will show a problem with the build version.

Please tell me the solution for this.

+6
source share
1 answer

The most common cause of these symptoms

The most likely cause of this problem is the following known error: https://bugzilla.xamarin.com/show_bug.cgi?id=25811

Explanation

The problem with this error is that the Xamarin.Forms template uses a bad default setting for the iOS project in Visual Studio Configuration Manager.

The configuration manager works by telling Visual Studio which projects you want to create and / or deploy at the same time in the configuration that you are using at that time.

For example; when you create your Android project in Forms, the configuration manager guarantees the inclusion of a common project; otherwise it will not work, or you will have to build it separately, etc. etc. (i.e. real pain.)

Typically, Visual Studio is not automatically able to "know" which projects you want to include in all your configurations; you must tell him to enable (some libraries) with (some applications); etc. manually.

How to fix it

Screencast: http://www.screencast.com/t/zLoQOpEn

  • Go to "Build -> Configuration Manager"
  • Select the configuration (s) you want to configure (e.g. Debug | iPhoneSimulator, Release | iPhone)
  • Make sure your shared library projects are included in the platform configuration. (You can ignore the grayed out "Expand" checkbox, which are processed automatically)

Why is this a mistake

So, this is not a mistake in the fact that the configuration manager does not work correctly for iOS projects, but when creating a new application in the form template, the poor default setting for iOS projects is used. He must “know” to enable a common project in the default iOS configuration.

0
source

Source: https://habr.com/ru/post/982668/


All Articles