I create CocosLuaGame project from engine(cocos2dx 3.0 or 3.2 release). If I run the project in ios 7.1 x64bit simulator directly it is ok, but if I use luajit to precompile the lua file with command “luajit -b inputfile.lua outputfile.lua” then encountered below error message:
[[[[ cocos2d: [LUA ERROR] load “src/main.lua”, error: syntax error during pre-compilation.
cocos2d: [LUA ERROR] [string “require “src/main.lua””]:1: module ‘src/main.lua’ not found:
no field package.preload[‘src/main.lua’]src/main.lua: bad header in precompiled chunk ]]]].
This error happens on x64 bit simulator and iphone5s. It works fine on x32 bit simulator and other iphones.
Can anyone help? Great Thanks