导致“无法识别的选择器发送给班级"的原因是什么?Xamarin Forms构建时出错? [英] What causes "unrecognized selector sent to class" error on Xamarin Forms build?

查看:64
本文介绍了导致“无法识别的选择器发送给班级"的原因是什么?Xamarin Forms构建时出错?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先要了解我的系统:

  • Mac OS版本10.13.6
  • Xcode版本10
  • Visual Studio for mac 7.6.6

我对Xamarin表格是完全陌生的,想玩转和学习.我要做的就是简单地创建一个新的xamarin表单解决方案并将其构建.

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.

这是我经历的步骤:

  • 创建新项目
  • 从Multplatform的应用子菜单中选择C#中的空白表格应用"
  • 既针对Andriod又针对iO的平台;共享代码.NET Standard
  • 不要打扰版本控制或应用程序中心测试(未选中)

这是错误:

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

这里还有更详细的Visual Studio规格

Also here are more detailed visual studio specs

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

推荐答案

虽然@snotyak在评论中回答了该问题(并在答案"部分中回答了问题),但我将此作为答案.

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.

这似乎在更新Xamarin.iOS之后出现.Xcode需要安装新组件,因此您要做的就是打开Xcode并让其安装新组件.

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.

这篇关于导致“无法识别的选择器发送给班级"的原因是什么?Xamarin Forms构建时出错?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆