Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Is it possible to choose MacOS SDK when build IL2CPP?

Discussion in 'macOS' started by BigGreenPillow, Oct 2, 2020.

  1. BigGreenPillow

    BigGreenPillow

    Joined:
    Dec 2, 2013
    Posts:
    26
    Hi, I'm trying to get a native plugin working to support the new Game Center Access Point and getting issues building with it mostly because IL2CPP seems to be trying to use MacOSX10.15.sdk so it is throwing a lot of undeclared identifiers since they are all new to OSX 11, is there a way to tell Unity what SDK to build with or any other work around? I tried finding information about this and didn't find anything relevant so far, I was going to try to build with Mono and trying to compile this plugin instead of using the source file as I usually do but decided to ask first because I believe the problem would still happen if Unity still decides to use the wrong SDK, right?

    For reference I'm using Unity 2019.4.8f1

    Thanks!
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
    Unity uses whatever is set as default on the system. You can change it by doing this:

    Code (csharp):
    1. sudo Xcode-select -s <path/to/Xcode>