Forum Xamarin Xamarin.iOS

How do I target older versions of OS X

Under Options => Mac Build => SDK Version, I can target Default and 10.11.
We wish to target 10.9+.
What do I need to do to install older SDKs and target older versions of OS X?

Tagged:

Best Answer

Answers

  • ChrisHamonsChrisHamons USForum Administrator, Xamarin Team Xamurai
    edited December 2015

    So the version under Mac Build -> Sdk Version is the SDK you link against. This is primarily dependent on the Xcode you are you using.

    If you open your Info.plist, there is a Deployment Target dropdown, which I believe is what you are looking for.

  • Thanks Chris.
    I was able to change the Deployment Target. From what I have read, this stops the app running on older versions of the OS.

    Changing the Deployment Target did not influence the SDK Version in the Mac Build options.

    My concern was that I might write code that would break on older versions of Mac. I.e. use a method that is only available in OS X 10.11.
    My assumption was changing the Mac Build options to a lower SDK version would fail to compile methods or classes I couldn't use.

    e.g. NSLineBreakMode is only available for 10.10 and above.

Sign In or Register to comment.