I build lua as a dynamic library target and another dynamic library target depend on it. When i require my lib,here's a error: multiple Lua VMs detected. I found a solution under gcc by adding -Wl,-E link flag here. But how to do in Xcode?
Update: I try to use -weak_library to link lua in my target also catch "multiple Lua VMs detected" error.