Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用LuaByteMode时,在Mac OS中打包Android资源,lua脚本在Android手机上报错 #29

Open
torry opened this issue Aug 6, 2017 · 4 comments

Comments

@torry
Copy link

torry commented Aug 6, 2017

您好,
设置LuaByteMode = true
在Mac上打包Android资源,
在Android的手机上报错:
LuaException: tolua.lua: cannot load incompatible bytecode
LuaInterface.LuaState:LuaLoadBuffer(Byte[], String)
LuaInterface.LuaState:DoFile(String)
LuaInterface.LuaState:OpenBaseLuaLibs()
LuaInterface.LuaState:Start()
LuaFramework.LuaManager:InitStart()
LuaFramework.GameManager:OnInitialize()
LuaFramework.GameManager:m__0()
LuaFramework.c__AnonStorey2:<>m__0(Object[])
LuaFramework.c__Iterator0`1:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

@bsyx
Copy link

bsyx commented Jan 7, 2018

框架确实有这个问题,win和mac打包加密ab在Android都无法运行。这个问题应该是jit32位和64位的问题。 @torry @jarjin @jarjin2000

@weiboooooy
Copy link

是的,LuaByteMode = true在安卓上就会有问题,无论LuaBundleMode是否 = true。

@deviljz
Copy link

deviljz commented May 5, 2018

遇到同样的问题,这个有办法自己解决吗

@torry
Copy link
Author

torry commented May 24, 2018

我是这样解决的。自己重新编译了三个luajit,一个用于android,一个用于ios 32位,一个用于ios64位。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants