升级EI Capitan后,打包lua脚本时,会报这个错:

LibclangError: dlopen(libclang.dylib, 6): image not found. To provide a path to libclang use Config.set_library_path() or Config.set_library_file().

处理方法,重新设置libclang.dylib库的路径,打开

/Applications/Cocos/frameworks/cocos2d-x-3.6/tools/bindings-generator/clang.pyc文件,

修改3395行成如下:

library = cdll.LoadLibrary("../bindings-generator/libclang/" + self.get_filename())

05-11 21:51