如何使用自制&x27;s版含Xamarin的Mono

如何使用自制&x27;s版含Xamarin的Mono,mono,homebrew,xamarin-studio,Mono,Homebrew,Xamarin Studio,我最近安装了Xamarin Studio,下一次运行brew doctor时,我收到以下警告: 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. 所以

我最近安装了Xamarin Studio,下一次运行brew doctor时,我收到以下警告:

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时,它说:

Could not launch Xamarin Studio

This application requires the Mono framework.

Please download and install the latest version of Mono.
然后我用自制软件安装了mono,但Xamarin Studio在打开时仍然有相同的信息


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

您可以而且应该将Mono.framework留在/Library/Frameworks中找到它的地方


如果您后来发现需要自己构建CMake(这不太可能;Homebrew现在通常将CMake作为预编译的“瓶子”安装),并且在尝试重新构建时实际遇到错误,那么您应该暂时将Mono.framework移开,直到CMake构建完成。

我通过安装mono mdk而不是从自制的mono解决了这个问题

brew cask install mono-mdk
您还可以修改路径以使用mono mdk的二进制文件:

export PATH=/Library/Frameworks/Mono.framework/Versions/Current/Commands:$PATH 

但如果我把Mono.framework放在原处,当我运行brew doctor时,homebrew会抱怨。没关系<代码>brew doctor输出为建议。医生现在打印以下消息:“请注意,如果您提交问题,这些警告仅用于帮助Homebrew维护人员进行调试。如果您使用Homebrew的所有功能都正常:请不要担心,忽略它们。谢谢!”