Monodevelop on Mac: `Mono.framework MDK is missing` - macos

In Monodevelop, if I enable the Include the Mono runtime in the application bundle checkbox, then I get this error at build:
Merging Mono Runtime into app bundle
/Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.MonoMac/mmp -nolink "-minos=10.6" -o "/Users/Kizumi/src/CmisSync/SparkleShare/Mac/bin/Debug" -n "SparkleShare" -a "/Users/Kizumi/src/CmisSync/bin/SparkleLib.dll" -a "/Users/Kizumi/src/CmisSync/bin/SparkleLib.Cmis.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Xml.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Core.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Drawing.dll" -a "/Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/MonoDevelop.MonoMac/MonoMac.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Net.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/Mono.Posix.dll" "/Users/Kizumi/src/CmisSync/SparkleShare/Mac/bin/Debug/SparkleShare.exe"
Mono.framework MDK is missing. Please install the MDK for your Mono.framework version from http://mono-project.com/Downloads
mmp exited with code 252
I comply with all requirements at http://www.mono-project.com/MonoMacPackager :
On Snow Leopard I installed XCode 3.2.6 (last XCode version that runs on Snow Leopard), the minimum requirement being XCode 3.2.5
Application Tools seems to be included in XCode since 3.2.6 so I don't need to install another package.
I installed Mono 2.10.9
I installed Monodevelop 3.0.5
I have MonoMac 3.0.5 enabled in Monodevelop
Am I missing something?

The problem is that despite having Monodevelop I only had the Mono MRE.
As suggested bt the error message, the solution was to install the Mono MDK, which can be found alongside the MRE here: http://www.go-mono.com/mono-downloads/download.html

Related

netcore web app - It was not possible to find any compatible framework version

I'm trying to use VSCode with .Net Core web applications but I'm stuck at the begining. I installed dotnet sdk 2.0.2 and I created a web application by using yeoman.
I used dotnet restore command and after that I used dotnet run command. But on dotnet run command it keeps saying 'can't find any compatible framework version'. Check the error below.
So how can I run my web app? I tried to change version too but I had same results.
Using launch settings from /Users/kadir/Documents/Development/WebApplications/firstMvcTutorial/firstMvcCoreWebApp/Properties/launchSettings.json...
It was not possible to find any compatible framework version
The specified framework 'Microsoft.NETCore.App', version '1.0.5' was not found.
- Check application dependencies and target a framework version installed at:
/
- Alternatively, install the framework version '1.0.5'.
Solved it.
I downloaded and installed Microsoft.NETCore.App 1.0.5 from this link.
After that I changed version to 2.0.0 on global.json. Then I restored dotnet with dotnet restore and I run app with dotnet run.
But this time I had a problem with System.Security.Cryptography.Native.
.
I applied commands below and fixed my problem. Now I can run my web application.
brew update
brew install openssl
mkdir -p /usr/local/lib
ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/
ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/

Mono on OS X shows old version after installing latest version

I just installed Mono 3.10.0 on OS X using the package from their website.
Before the installation I had installed 3.6.1.
After the installation of 3.10.0 mono --version still shows 3.6.1.
which mono returns /usr/local/bin/mono.
In /usr/local/bin/, mono refs to:
mono -> ../Cellar/kmono/3.6.1-10002/bin/mono.
Where can I find and activate my recently installed version 3.10.0?
~/Library/Frameworks/mono does not exist.
You have a custom mono in your /usr/local, which takes precedence over the one you just installed. You need to remove your custom one.
Your recently installed mono can be found in /usr (try /usr/bin/mono --version, and it will print 3.10)

MonoMac projects cannot compile: ibtool exited with code 1 - Can't run /Developer/usr/bin/ibtool (no such file)

I'm moving my first steps in MonoMac.
But I stopped right at the beginning due to some configuration error. I've created a new ManoMac project in MonoDevelop, and then tried some other sample MonoMac xamarin projects from GitHub, but I always get this error compiling:
Error: Can't run /Developer/usr/bin/ibtool (no such file).
ibtool exited with code 1
My configuration:
Operating System:
Mac OS X 10.7.3
MonoDevelop 2.8.6.5
Runtime:
Mono 2.10.8 (tarball Mon Dec 19 17:43:18 EST 2011)
GTK 2.24.5
GTK# (2.12.0.0)
Mono for Android not installed
Apple Developer Tools:
Xcode 4.3.1 (1176)
Build 4E1019
Monotouch: 5.2.5
MonoDevelop.MonoMac 2.6.0.0
All my Monotouch projects compile fine, and I have no problem with the last XCode (following the Xamarin guidelines I successfully upgraded XCode and moved it from the obsolete Developer folder to the Application folder, and downloaded the updated developer command line tools from apple).
I've tried reinstalling MonoDevelop, but with no success. I always get: "Error: ibtool returned error code 1."
Any help is appreciated.
This problem is caused by the Xcode 4.3 installer not updating the Xcode symlinks correctly to point to the active Xcode version. You can fix it with the following command:
sudo xcode-select -switch /Applications/Xcode.app
This upcoming MonoDevelop 2.8.8 release contains a fix for this. You can get it from the beta update channel.
It looks like the MonoMac addin was never updated to work with Xcode 4.3.
A temporary workaraound is to setup symlinks in the proper places in /Developer.
I found the way in the MonoMac forum:
http://mono.1490590.n4.nabble.com/MonoMac-and-XCode-4-3-ibtool-error-Solution-td4403822.html
I report it here:
When using MonoMac and Xcode 4.3, the current MD beta build fails with an ibtool error.
The solutions is to type the following commands in the Terminal console:
sudo rm /usr/bin/ibtool
and then:
sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool /usr/bin/ibtool
Now it compiles fine.
I got a similar error running Xamarin on Xcode 6.2 and I solved the problem by re-installing the same version of Xcode again replacing the old version per the suggestion on this post: xcode-select active developer directory error on OSX Mavericks.
I may have caused this problem as I was renaming XCode Application. I have several versions installed and was trying to keep them all straight.

Qt SDK installation fails - com.nokia.ndk.api.qtcomponents.simulator.gcc Can't start process install_name_tool

I am trying to install the Qt SDK on OS X Snow Leopard 10.6.8, with XCode version 3.2.6. During the install I get the following error:
Error during installation process
(com.nokia.ndk.api.qtcomponents.simulator.gcc): Can't start process
install_name_tool.
What do I do to get this to install correctly?
This question seems to be answered here : problem during Qt installation
It would appear that GCC is not included with the xcode app. Free registration as an Apple Developer allows you to download the command line tools as follows:
Xcode->Preference->Downloads and click install button besides "Command line tools".
After installing gcc, reinstall QT, and those messages should no longer appear

How do I install MonoDevelop on my Mac?

I just downloaded MonoDevelop for my Mac, but I cannot figure out how to install it.
Does anyone know exactly what to type in the terminal to get it to install?
The recently updated Mono 1.2.6 package for MacOS X contains Imendio's Native Gtk+ for OSX, Gtk# and MonoDevelop 0.18.1 with Mac support. It is now available from Mono's downloads page.
It appears that you have to run all three of these installs to get it to work:
Mono 2.2_5 Framework - Universal
MonoDevelop 2.0 Alpha 2
Cocoa# 0.9.4 source
this link might be helpful for new comers.
Mono:OsX
follow the link below if you are interested in Building Monodevelop in os X:
Building mono develop
Xamarin Studio may be installed using Homebrew.
For Mac and Windows, you can download Xamarin Studio which is a bundle of MonoDevelop along with Xamarin iOS/Android plugins and branding.
– Download | MonoDevelop.
There is a Homebrew Cask for Xamarin Studio.
The installation can be done as follows:
$ brew install Caskroom/cask/xamarin-studio
This question might be useful: How to use Homebrew's version of Mono with Xamarin - Stack Overflow.

Resources