How to use Homebrew's version of Mono with Xamarin

人盡茶涼 提交于 2019-12-03 04:54:55

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.

I solved this by installing mono-mdk instead of mono from homebrew.

brew cask install mono-mdk

You can also modify your PATH to use mono-mdk's binary:

export PATH=/Library/Frameworks/Mono.framework/Versions/Current/Commands:$PATH 
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!