Fix #744. Adds Lua and general fixes to the XCode template.
Merge pull request #753 from kwhatmough/next

Fix #744. Adds Lua and general fixes to the XCode template.