Tencent / xLua

xLua is a lua programming solution for C# ( Unity, .Net, Mono) , it supports android, ios, windows, linux, osx, etc.
Other
9.39k stars 2.46k forks source link

unity M1 version DllNotFoundException: xlua assembly #986

Open BeatMicrosoft opened 2 years ago

BeatMicrosoft commented 2 years ago

use m1 mac download unity(2021.3.1f1c1 SILICON) when I run my project, occur this error DllNotFoundException: xlua assembly

chexiongsheng commented 2 years ago
  1. compile m1 version plugin using this: https://github.com/Tencent/xLua/blob/master/build/make_osx_lua53.sh
  2. remove Assets/Plugins/xlua.bundle/
  3. place xlua.bundle (build by step 1) to Assets/Plugins/arm64/
shroudpatric commented 2 years ago
  1. compile m1 version plugin using this: https://github.com/Tencent/xLua/blob/master/build/make_osx_lua53.sh
  2. remove Assets/Plugins/xlua.bundle/
  3. place xlua.bundle (build by step 1) to Assets/Plugins/arm64/

Thanks a lot.

DZRgogogo commented 2 years ago

经测试,执行上述操作时候,需要确保build目录下没有plugin_lua53文件夹

teach310 commented 1 year ago
  1. compile m1 version plugin using this: https://github.com/Tencent/xLua/blob/master/build/make_osx_lua53.sh
  2. remove Assets/Plugins/xlua.bundle/
  3. place xlua.bundle (build by step 1) to Assets/Plugins/arm64/
  1. include only Editor and Standalone スクリーンショット_2023-03-04_7_49_29