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

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

问题描述

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.

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.

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

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

解决方案

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

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天全站免登陆