Solve the error effect on iOS.
Merge pull request #8740 from natural-law/v3

Solve the error effect of lua runtime template on iOS.