How to set iOS SDK path for Visual Studio for Mac without IDE

We use Jenkins for our CI/CD pipeline and there are multiple Xcode versions installed on our Mac build servers

Xamarin builds using MSBuild launches a particular xcode version using the path settings for the iOS SDK defined via the Visual Studio for Mac IDE.
On my local machine I can login as Jenkins user, start the IDE and change the settings, but on our production CI/CD pipeline I'm not allowed to login using a graphical interface (command tool only)

So I need to figure out how I can set the Xcode sdk path that MSBuild uses.

Is there

  • a command line option that I can use with MSBuild to indicate which XCode SDK it needs to use?
  • or what configuration file is change when changing the Xcode SDK path using Visual Studio for Mac IDE?
Tagged:

Best Answer

  • FrederickDhontFrederickDhont BE ✭✭
    Accepted Answer

    So, you can change the target Xcode SDK by changing the following file

    • /Users/…./Library/Preferences/Xamarin/Settings.plist

    and change the content for the key [AppleSdkRoot]

Answers

  • FrederickDhontFrederickDhont BEMember ✭✭
    Accepted Answer

    So, you can change the target Xcode SDK by changing the following file

    • /Users/…./Library/Preferences/Xamarin/Settings.plist

    and change the content for the key [AppleSdkRoot]

Sign In or Register to comment.