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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Apple Silicon DllNotFoundException

Discussion in 'Editor & General Support' started by jlevet, Apr 26, 2023.

  1. jlevet

    jlevet

    Joined:
    Sep 9, 2013
    Posts:
    34
    Hi there,

    I have an issue with the Apple Silicon version of the Editor:
    i'm currently using the same version, both
    - Silicon LTS 2021.3.16f1
    - Intel LTS 2021.3.16f1

    Without changing anything, i try to to load a .bundle library, configured on Any CPU.
    If i run a lipo command on the Library i got:

    Code (CSharp):
    1.  
    2. lipo libBinkPluginMac.bundle -detailed_info >> log.txt
    3.  
    4. Fat header in: libBinkPluginMac.bundle
    5. fat_magic 0xcafebabe
    6. nfat_arch 3
    7. architecture x86_64
    8.     cputype CPU_TYPE_X86_64
    9.     cpusubtype CPU_SUBTYPE_X86_64_ALL
    10.     capabilities 0x0
    11.     offset 4096
    12.     size 130828
    13.     align 2^12 (4096)
    14. architecture i386
    15.     cputype CPU_TYPE_I386
    16.     cpusubtype CPU_SUBTYPE_I386_ALL
    17.     capabilities 0x0
    18.     offset 135168
    19.     size 45112
    20.     align 2^12 (4096)
    21. architecture arm64
    22.     cputype CPU_TYPE_ARM64
    23.     cpusubtype CPU_SUBTYPE_ARM64_ALL
    24.     capabilities 0x0
    25.     offset 196608
    26.     size 167644
    27.     align 2^14 (16384)
    Looking at this i think this Library contains proper architectures to work on Both Intel & Apple Silicon version of the Editor but
    - with the Intel version it works (after macOS prompting me that i need to trust this Library)
    - with the Apple Silicon it does not, throwing a DllNotFoundException.

    Am i missing something?
    They are located under a Plugins/x86_64 folder, i even tried puting it under an arm64 folder without success.
    What am i missing? is it a Library issue? is it an Editor issue?

    Thanks,
    Jerome
     
  2. jlevet

    jlevet

    Joined:
    Sep 9, 2013
    Posts:
    34
    Noone got issues with .bundle loading on MacOS Editor on Apple Silicon hardware?
     
  3. jlevet

    jlevet

    Joined:
    Sep 9, 2013
    Posts:
    34