DllNotFoundException: PreciseLocaleOSX

Welcome! Forums Unity Plugins Precise Locale DllNotFoundException: PreciseLocaleOSX

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #11801
    vorlex
    Participant

    Hi!
    We’ve got a problem building our app with support of Apple Silicon M1 (Intel 64 bit + Apple Silicon).
    Application successfully builds, but misses PreciseLocaleOSX dll:

    (Filename: /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs Line: 37)

    Fallback handler could not load library /Users/SLBuilds/Projects/PLNT_BUILDS/PLNT_MACOS/test/Planet of Cubes.app/Contents/Frameworks/MonoEmbedRuntime/osx/libPreciseLocaleOSX
    Fallback handler could not load library /Users/SLBuilds/Projects/PLNT_BUILDS/PLNT_MACOS/test/Planet of Cubes.app/Contents/Frameworks/MonoEmbedRuntime/osx/libPreciseLocaleOSX.dylib
    Fallback handler could not load library /Users/SLBuilds/Projects/PLNT_BUILDS/PLNT_MACOS/test/Planet of Cubes.app/Contents/Frameworks/MonoEmbedRuntime/osx/libPreciseLocaleOSX.so
    Fallback handler could not load library /Users/SLBuilds/Projects/PLNT_BUILDS/PLNT_MACOS/test/Planet of Cubes.app/Contents/Frameworks/MonoEmbedRuntime/osx/libPreciseLocaleOSX.bundle
    Fallback handler could not load library /Users/SLBuilds/Projects/PLNT_BUILDS/PLNT_MACOS/test/Planet of Cubes.app/Contents/Frameworks/MonoEmbedRuntime/osx/PreciseLocaleOSX
    Fallback handler could not load library /Users/SLBuilds/Projects/PLNT_BUILDS/PLNT_MACOS/test/Planet of Cubes.app/Contents/Frameworks/MonoEmbedRuntime/osx/libPreciseLocaleOSX
    Fallback handler could not load library /Users/SLBuilds/Projects/PLNT_BUILDS/PLNT_MACOS/test/Planet of Cubes.app/Contents/Frameworks/MonoEmbedRuntime/osx/libPreciseLocaleOSX.dylib
    Fallback handler could not load library /Users/SLBuilds/Projects/PLNT_BUILDS/PLNT_MACOS/test/Planet of Cubes.app/Contents/Frameworks/MonoEmbedRuntime/osx/libPreciseLocaleOSX.so
    Fallback handler could not load library /Users/SLBuilds/Projects/PLNT_BUILDS/PLNT_MACOS/test/Planet of Cubes.app/Contents/Frameworks/MonoEmbedRuntime/osx/libPreciseLocaleOSX.bundle
    Fallback handler could not load library /Users/SLBuilds/Projects/PLNT_BUILDS/PLNT_MACOS/test/Planet of Cubes.app/Contents/Frameworks/MonoEmbedRuntime/osx/libPreciseLocaleOSX
    Fallback handler could not load library /Users/SLBuilds/Projects/PLNT_BUILDS/PLNT_MACOS/test/Planet of Cubes.app/Contents/Frameworks/MonoEmbedRuntime/osx/libPreciseLocaleOSX
    Fallback handler could not load library /Users/SLBuilds/Projects/PLNT_BUILDS/PLNT_MACOS/test/Planet of Cubes.app/Contents/Frameworks/MonoEmbedRuntime/osx/libPreciseLocaleOSX.dylib
    Fallback handler could not load library /Users/SLBuilds/Projects/PLNT_BUILDS/PLNT_MACOS/test/Planet of Cubes.app/Contents/Frameworks/MonoEmbedRuntime/osx/libPreciseLocaleOSX.so
    Fallback handler could not load library /Users/SLBuilds/Projects/PLNT_BUILDS/PLNT_MACOS/test/Planet of Cubes.app/Contents/Frameworks/MonoEmbedRuntime/osx/libPreciseLocaleOSX.bundle
    Fallback handler could not load library /Users/SLBuilds/Projects/PLNT_BUILDS/PLNT_MACOS/test/Planet of Cubes.app/Contents/Frameworks/MonoEmbedRuntime/osx/PreciseLocaleOSX
    Fallback handler could not load library /Users/SLBuilds/Projects/PLNT_BUILDS/PLNT_MACOS/test/Planet of Cubes.app/Contents/Frameworks/MonoEmbedRuntime/osx/libPreciseLocaleOSX
    Fallback handler could not load library /Users/SLBuilds/Projects/PLNT_BUILDS/PLNT_MACOS/test/Planet of Cubes.app/Contents/Frameworks/MonoEmbedRuntime/osx/libPreciseLocaleOSX.dylib
    Fallback handler could not load library /Users/SLBuilds/Projects/PLNT_BUILDS/PLNT_MACOS/test/Planet of Cubes.app/Contents/Frameworks/MonoEmbedRuntime/osx/libPreciseLocaleOSX.so
    Fallback handler could not load library /Users/SLBuilds/Projects/PLNT_BUILDS/PLNT_MACOS/test/Planet of Cubes.app/Contents/Frameworks/MonoEmbedRuntime/osx/libPreciseLocaleOSX.bundle
    Fallback handler could not load library /Users/SLBuilds/Projects/PLNT_BUILDS/PLNT_MACOS/test/Planet of Cubes.app/Contents/Frameworks/MonoEmbedRuntime/osx/libPreciseLocaleOSX
    DllNotFoundException: PreciseLocaleOSX
    at (wrapper managed-to-native) PreciseLocale+PreciseLocaleOSX._getLanguage()
    at PreciseLocale+PreciseLocaleOSX.GetLanguage () [0x00001] in /Users/SLBuilds/Projects/plnt/Assets/PreciseLocale/PreciseLocale.cs:204
    at PreciseLocale.GetLanguage () [0x00001] in /Users/SLBuilds/Projects/plnt/Assets/PreciseLocale/PreciseLocale.cs:96

    Could you give some advise?

    #11803
    PiotrPiotr
    Keymaster

    What platform are you building for?

    #11804
    vorlex
    Participant

    Mac Standalone:

    #11805
    PiotrPiotr
    Keymaster

    Hmm. Do I see correctly that Unity is requiring DLL file for MacOS? Isn’t it Windows format? 😀

    #11806
    vorlex
    Participant

    Yeah, that’s strange. Maybe that’s default message in .net about any type of library, even MacOS one.
    If you look down the stack trace, you’ll see that it couldn’t load OSX library.

    #11809
    PiotrPiotr
    Keymaster

    Do you have PreciseLocaleOSX.bundle file in Plugins/Mac directory? Is it part of your generated project?

    #11812
    vorlex
    Participant

    Yes, we have it and it works just fine for Intel 64-bit build, but when we set target platform to Intel 64-bit + Apple silicon it doesn’t.

    #11815
    vorlex
    Participant

    Have made two builds: one for Apple Silicon (M1) and the other for Intel-64 only. It just doesn’t copy bundle for Apple Silicon during build:

    Apple Silicon

    • This reply was modified 2 years, 10 months ago by vorlex.
    #11816
    vorlex
    Participant

    Okay. Somehow I can’t add two pictures in one post here. So, here’s the other one for Intel-64:

    Intel-64

    #11820
    PiotrPiotr
    Keymaster

    No idea why would that happen. It seems some bug on Unity side or missing setting. What happens when you copy it there manually? Also when you click on file in Unity there is checkbox to tell which platform should use it – is it setup correctly?

    #11822
    vorlex
    Participant

    Thank you! It worked after I copied it there manually.
    Regarding platform, it shows nothing, when plugin is selected.

    • This reply was modified 2 years, 10 months ago by vorlex.
Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.