unity-jsb
unity-jsb copied to clipboard
DllNotFoundException
Error when opening and running a project from the master branch of the repository.
macOS 12.3.1 (21E258) Unity 2021.3.1f1
DllNotFoundException: quickjs assembly:<unknown assembly> type:<unknown type> member:(null)
QuickJS.Native.JSApi..cctor () (at Packages/cc.starlessnight.unity-jsb/Source/Native/JSApi.cs:711)
Rethrow as TypeInitializationException: The type initializer for 'QuickJS.Native.JSApi' threw an exception.
QuickJS.ScriptEngine.CreateRuntime (System.Boolean isEditorRuntime) (at Packages/cc.starlessnight.unity-jsb/Source/ScriptEngine.cs:223)
QuickJS.Unity.EditorRuntime.OnEditorInit () (at Packages/cc.starlessnight.unity-jsb/Source/Unity/Editor/EditorRuntime.cs:188)
UnityEditor.EditorApplication.Internal_CallDelayFunctions () (at /Users/bokken/buildslave/unity/build/Editor/Mono/EditorApplication.cs:371)
The same for 2019.4.38f1 and with the project taken from release 1.7.2
OK, I'll check it.
Hi @aleverdes , I've tried but couldn't reproduce this issue on Unity 2021.3 (INTEL) + macos 12.3.1 with M1 chip. Could you give more details about your environment?
And check the output of the macos quickjs library with this command:
file YourLocalPath/Packages/cc.starlessnight.unity-jsb/Plugins/quickjs.bundle/Contents/MacOS/quickjs
It should output:
quickjs: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit bundle x86_64
- Mach-O 64-bit bundle x86_64] [arm64]
@ialex32x Hello. Okay, I'll provide all the information I can gather later.