git clone [email protected]:SupinePandora43/UltralightNet.git
cd UltralightNet
dotnet restore UltralightNet.AppCore.TestApp
dotnet run --project UltralightNet.AppCore.TestApp
Unhandled exception. System.TypeInitializationException: The type initializer for 'UltralightNet.AppCore.AppCoreMethods' threw an exception.
---> System.TypeInitializationException: The type initializer for 'UltralightNet.Methods' threw an exception.
---> System.DllNotFoundException: Unable to load shared library 'libUltralightCore.dylib' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable: dlopen(libUltralightCore.dylib, 1): image not found
at System.Runtime.InteropServices.NativeLibrary.LoadFromPath(String libraryName, Boolean throwOnError)
at System.Runtime.InteropServices.NativeLibrary.Load(String libraryPath)
at UltralightNet.Methods.Preload() in /Users/johann/dev/UltralightNet/UltralightNet/Methods.cs:line 45
at UltralightNet.Methods..cctor() in /Users/johann/dev/UltralightNet/UltralightNet/Methods.cs:line 10
--- End of inner exception stack trace ---
at UltralightNet.Methods.Preload() in /Users/johann/dev/UltralightNet/UltralightNet/Methods.cs:line 30
at UltralightNet.AppCore.AppCoreMethods..cctor() in /Users/johann/dev/UltralightNet/UltralightNet.AppCore/AppCoreMethods.cs:line 9
--- End of inner exception stack trace ---
at UltralightNet.AppCore.AppCoreMethods.ulEnableDefaultLogger(String log_path) in /Users/johann/dev/UltralightNet/UltralightNet.AppCore/DllImportGenerator/Microsoft.Interop.DllImportGenerator/DllImportGenerator.g.cs:line 47
at UltralightNet.AppCore.TestApp.Program.Main() in /Users/johann/dev/UltralightNet/UltralightNet.AppCore.TestApp/Program.cs:line 10
FYI, the same commands work perfectly on Windows, I didn't try on Linux tho but I think it could fail the same (and it will be easier to reproduce if you don't have an Apple device).