如何在Xamarin中使用Homebrew的Mono版本 [英] How to use Homebrew's version of Mono with Xamarin

查看:97
本文介绍了如何在Xamarin中使用Homebrew的Mono版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近安装了Xamarin Studio,下次去运行brew医生时,我得到了以下警告:

I recently installed Xamarin Studio, and the next time I went to run brew doctor, I got this warning:

Warning: /Library/Frameworks/Mono.framework detected
This can be picked up by CMake's build system and likely cause the build to fail. You may need to move this file out of the way to compile CMake.

因此,我将Mono.framework从桌面移开了,这解决了该问题,但是当我打开Xamarin Studio时,它说:

So I moved Mono.framework out of the way to my desktop and that fixed the problem, but when I went to open Xamarin Studio, it said:

Could not launch Xamarin Studio

This application requires the Mono framework.

Please download and install the latest version of Mono.

所以我随后在Homebrew中安装了mono,但是Xamarin Studio在打开时仍然显示相同的消息.

So then I installed mono with Homebrew, but Xamarin Studio still has the same message when opening.

如何让Xamarin Studio使用Homebrew的Mono版本?

How can I get Xamarin Studio to use Homebrew's version of Mono?

推荐答案

您可以并且应该将Mono.framework保留在/Library/Frameworks中的位置.

You can and should leave Mono.framework where you found it in /Library/Frameworks.

如果以后发现需要自己构建CMake(这不太可能; Homebrew现在通常将CMake作为预编译的瓶"进行安装),而实际上在尝试重建它时遇到错误,然后您应该暂时将Mono.framework移开,直到CMake构建完成.

If you later discover that you need to build CMake yourself (which is unlikely; Homebrew now typically installs CMake as a pre-compiled "bottle") and you actually encounter an error while trying to rebuild it, then you should move Mono.framework out of the way temporarily, until the CMake build has finished.

这篇关于如何在Xamarin中使用Homebrew的Mono版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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