同一个项目Xcode用32位能编过增加arm64后就编不过了

helloli
Wed, 04 Mar 2015 02:00:26 +0000

基于cocos2dx 3.2版本＋lua 的项目，在运行时报以下错误：

— Begin quote from ____

cocos2d: load “src/debug/debugscene.lua”, error: syntax error during pre-compilation.
cocos2d: ----------------------------------------
cocos2d: LUA ERROR: :48: module ‘src/debug/debugscene’ not found:
no field package.preload’src/debug/debugscene’]:1: unexpected symbol near ‘\357’
no file ‘./src/debug/debugscene.lua’
no file ‘/usr/local/share/lua/5.1/src/debug/debugscene.lua’
no file ‘/usr/local/share/lua/5.1/src/debug/debugscene/init.lua’
no file ‘/usr/local/lib/lua/5.1/src/debug/debugscene.lua’
no file ‘/usr/local/lib/lua/5.1/src/debug/debugscene/init.lua’
no file ‘./src/debug/debugscene.so’
no file ‘/usr/local/lib/lua/5.1/src/debug/debugscene.so’
no file ‘/usr/local/lib/lua/5.1/loadall.so’

cocos2d: stack traceback:
in function <:11>
: in function ‘require’
:48: in function <:19>
: in function ‘xpcall’
:87: in main chunk
: in function ‘require’
:1: in main chunk
cocos2d: ----------------------------------------
cocos2d: :89: :48: module ‘src/debug/debugscene’ not found:
no field package.preload’src/debug/debugscene’]:1: unexpected symbol near ‘\357’
no file ‘./src/debug/debugscene.lua’
no file ‘/usr/local/share/lua/5.1/src/debug/debugscene.lua’
no file ‘/usr/local/share/lua/5.1/src/debug/debugscene/init.lua’
no file ‘/usr/local/lib/lua/5.1/src/debug/debugscene.lua’
no file ‘/usr/local/lib/lua/5.1/src/debug/debugscene/init.lua’
no file ‘./src/debug/debugscene.so’
no file ‘/usr/local/lib/lua/5.1/src/debug/debugscene.so’
no file ‘/usr/local/lib/lua/5.1/loadall.so’/quote]

好像是找不到 lua文件了，请问是什么原因呢？

— End quote

阅读整个主题