Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

UnityPlayer.dylib missing arm64 Architecture

Discussion in 'macOS' started by CharlesC88, Feb 2, 2021.

  1. CharlesC88

    CharlesC88

    Joined:
    Oct 4, 2018
    Posts:
    42
    I'm currently using Unity 2019.4.17f and have been able to get the unity build to run inside of xcode just fine after fixing a few issues. Now I'm trying to archive the XCode project so I can get the build to QA for testing and when I go to Archive it displays the following error.

    /Volumes/Samsung_X5/Builds/OSX_Builds/<Project>.xcodeproj The linked and embedded library 'UnityPlayer.dylib' is missing one or more architectures required by this target: arm64.

    Any help would be appreciated, as this will also be a problem when It comes time to submit for this update.
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,505
    Unity 2019.4 does not support targeting macOS arm64. You'll have to configure Xcode to compile just for x64 (usually it's just a matter of telling it to build "For My Mac Only").

    We added arm64 support in 2020.2.
     
  3. CharlesC88

    CharlesC88

    Joined:
    Oct 4, 2018
    Posts:
    42
    I've updated our project to 2020.2 for the arm64 support, but now I'm running into an issue with the CanvasScaler. When running the build our UI isn't scaling properly. In the editor I can disable/enable the Canvas scaler in a script but in the build this isn't working. I've tried changing resolutions as well and this isn't working either. Even changing the default run resolution to the same as that of the scaler doesn't seem to be working. The Scaler is set to use 1920x1080 and Scale with Screen Size. This wasn't an issue with our original release which was in 2018.4.12f and as I stated in my first post when I had updated to 2019.4.17f
     
  4. CharlesC88

    CharlesC88

    Joined:
    Oct 4, 2018
    Posts:
    42
    Turns out it was actually the AspectRatioFitter that was causing a problem I had to remove it and then everything started working again.
     
  5. danidani360

    danidani360

    Joined:
    Jul 28, 2020
    Posts:
    2
    What do you mean by remove it? I am having this issue, and it might be because I was trying to limit my aspect ratio to 16:9 and 4:3. I checked all the boxes again, but it's still not working for me. Don't all games need the AspectRatioFitter?