I'm trying to build a Xamarin.Mac app from the terminal using mdtool
.
Input:
$ Applications/Xamarin\ Studio.app/Contents/MacOS/mdtool build -p:"Project" -t:Build -c:"Release" "../../Solution.sln"
Output:
error: The Xamarin Studio Community Edition of Xamarin.Mac does not support building outside of Xamarin Studio. Please go to https://store.xamarin.com to upgrade to the Business Edition.
I thought it is free now because of the Microsoft acquisition. There is also no Business Edition available anymore AFAIK.
Is there still a way to build from the terminal? I'm using the latest Xamarin version.
If you are building a
Xamarn.Mac
Unified-based project, you can usexbuild
:Debug:
Release:
Note: For a "Release" build make sure that your Apple OS-X code signing keys are installed in the keychain
Note: The "new" x-plat OS-X
msbuild
(14.1.0.0) does not work quite yet. It fails on including certain references. I do not know if it is amsbuild
issue or a problem in one of theXamarin.Mac
.targets
filesIf you are building a
Xamarin.Mac
Classic-based project, the following should work:Note: I just tested this and it still makes a request to "activation.xamarin.com" for some reason but builds properly for me on the Community Edition. I do not normally develop Classic-API based apps anymore thus to not build via
mdtool
very much).I would report this issue @ https://bugzilla.xamarin.com