cocos2dx用的是3.8.1版本。
用lua开发了游戏,用下面的脚本加密成luac文件
cocos luacompile -s src/ -d out/ -e -k MyKey -b 123456 -disable-comlile
游戏在32位的iPhone手机下面没有问题,在64位的手机,如iPhone6下面,运行出现错误,提示:
load “src/clean/main.luac”, error: syntax error during pre-compilation.
:1: module ‘src/clean/main.lua’ not found:
no field package.preload’src/clean/main.lua’]src/clean/main.luac: cannot load incompatible bytecode
no file ‘./src/clean/main/lua.lua’
no file ‘/usr/local/share/luajit-2.1.0-alpha/src/clean/main/lua.lua’
no file ‘/usr/local/share/lua/5.1/src/clean/main/lua.lua’
no file ‘/usr/local/share/lua/5.1/src/clean/main/lua/init.lua’
no file ‘./src/clean/main/lua.so’
no file ‘/usr/local/lib/lua/5.1/src/clean/main/lua.so’
no file ‘/usr/local/lib/lua/5.1/loadall.so’
no file ‘./src/clean/main.so’
no file ‘/usr/local/lib/lua/5.1/src/clean/main.so’
no file ‘/usr/local/lib/lua/5.1/loadall.so’
网上也找了资料,说是
luajit的问题,但3.6的更新说明上面说支持64位了
iOS 64位架构使用luajit v2.1-20150331版本
所以现在不知道问题出在哪里?请问有人有遇到一样的问题吗?谢谢