Search Unity

Question Make Legacy Plugin work in M1 Chips

Discussion in 'macOS' started by albertocoderei, May 8, 2023.

  1. albertocoderei

    albertocoderei

    Joined:
    May 22, 2021
    Posts:
    2
    Hello dear community and thank you for taking your time,

    since last week I am desperately trying to make my app work with M1 without any success until now. The thing is, I am using this deprecated Plugin there is no alternative for, and it is crucial that this works.

    This plugin requires some different DLL/bundle files, that seem to have been compiled for Intel Chips, but not for M1s. My question is, how could I possibly build a Unity 2020.3/2021.3 project, to make it compatible with M1 Macbooks?

    I cannot contact the developer of the plugin, so I need to find a solution on my own :(

    Thanks in advance!
     
  2. karliss_coldwild

    karliss_coldwild

    Joined:
    Oct 1, 2020
    Posts:
    602
    When building for macOS you can configure whether to create an application containing both Intel+ARM executables or only one of them.

    upload_2023-5-9_8-45-51.png


    If you target Intel your third party plugin should still work. Targeting Intel doesn't mean your game will not work on M1 macs. As long as it doesn't do anything crazy it should still work using Rosetta. The performance might not be as good as targeting it natively, but for simple 2d games, it should be more than good enough.


    One major limitation to such approach is that if you want to sell it on Apple appstore, Apple will probably reject it. But other stores like Steam are fine with it.
     
    DevDunk likes this.