Solve the error of mac project in lua runtime template.