Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What causes "unrecognized selector sent to class" error on Xamarin Forms build?

A few things about my system first:

  • Mac OS version 10.13.6
  • Xcode version 10
  • Visual Studio for mac 7.6.6

I'm completely new to Xamarin forms and want to play around and learn. All I'm trying to do is simply create a new xamarin forms solution and get it to build.

Here are the steps I went through:

  • create new project
  • choose "blank forms app" in C# from the app submenu of multplatform
  • target platforms both Andriod and iOs; shared code .NET Standard
  • don't bother with version control or app centre test (unticked)

Here is the error:

https://github.com/benfranklin79/shared/blob/master/20180919/error.txt

Here is a link to the solution:

https://github.com/benfranklin79/shared/tree/master/20180919/test

Also here are more detailed visual studio specs

https://github.com/benfranklin79/shared/blob/master/20180919/vs_specs.txt

like image 259
Ben Franklin Avatar asked Sep 19 '18 20:09

Ben Franklin


People also ask

What does unrecognized selector sent to instance mean?

I'm probably getting the terminology wrong, but “unrecognized selector” means you're asking an Objective-C object or class to run a function that it doesn't implement. (

What is selector in xamarin iOS?

A selector is a message that can be sent to an object or a class. Xamarin. iOS maps instance selectors to instance methods, and class selectors to static methods.


1 Answers

Whilst this was answered by @snotyak in the comments (and to answer the question in the Answers section), I'm putting this down as an answer.

This seems to have appeared after updating Xamarin.iOS. Xcode requires to install the new components, so all you have to do is open Xcode and let it install the new components.

like image 158
Tom Avatar answered Oct 01 '22 15:10

Tom