Question

I've been writing cross platform GTK# projects in MonoDevelop (2.8.8.4) for a month or so, and I thought I'd try my hand at something that looks and breathes a little more like a Mac application.

When I create a "Cocoa Application" in MonoDevelop I can select Leopard as the target to build for in the "Project Options | General | Main Settings | MonoObj Settings | Target Mac OS Version". A project made this way builds and I can run it on my Mac.

I do not have the option of selecting the target Mac OS version available to me when I create a "MonoMac" project, and when I attempt to build a project the target is always for mac OSX 10.6. That is no good for me since I only have Leopard. [Of course I could upgrade :( ] It seems to me I shouldn't have to do that.

I've tried looking at all the configuration files that I can think of *.sln, *.csproj. I've also tried adding the extra "references" in the "MonoMac" project that are used in the "Cocoa Application" type project. It seems to me that I should be able to set a compiler switch, if I knew what that switch was. (I sort of was hoping for a cleaner approach if that is possible. Maybe this is something that is fixed in a later version of MonoDevelop, but I think my version is the last that is supported by Mac Leopard).

Any thoughts, or comments are more that welcome. Feel free to just point me in the right direction. (URLs etc)

Cheers.

Was it helpful?

Solution

Two places you'll need to change:

  1. Change your .xib's to have a deployment target of 10.5
  2. Change your Info.plist to have a LSMinimumSystemVersion of 10.5

You may need to delete the .app bundle in the output directory for these to be regenerated properly.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top