0
votes

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.

1
By the way, the "Cocoa Application" project type sounds like you are using Monobjc, which is not the same as MonoMac.Curtis
Yes, I was a bit suspicious also. That is why I put the different type of projects in quotations. The project types being what I chose when I created new "solutions" from the MonoDevelop menu system. I hadn't seen your answer, but I fooled around with what I had in my solution "references" and thought it odd that I didn't have "MonoMac", so I added it in, and now projects can build correctly when I edit the "Info.plist" to work for Mac Leopard (10.5). Thanks for your help! I learned another thing while I was at it because of your comment, that I could change the target OS in the ".xib" files.happy coder

1 Answers

2
votes

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.