Developing iPad and iPhone Apps with Lua

On WWDC 2010 we noticed some changes to Section 3.3.2 of Apple’s licensing agreement — specifically the part that deals deals with the use of cross-compilers. The changes this time around may not make things all better, but it could make things slightly better for some developers. Matt Drance had this to say about the change to Section 3.2.2:

“While explicit approval from Apple is still required, these new terms seem to acknowledge that there’s a difference between an app that happens to have non-compiled code, and a meta-platform. It’s a step that should allow for many new possibilities.”

And because of the features of Lua,

Lua is a powerful, fast, lightweight, embeddable scripting language.
Lua combines simple procedural syntax with powerful data description constructs based on associative arrays and extensible semantics. Lua is dynamically typed, runs by interpreting bytecode for a register-based virtual machine, and has automatic memory management with incremental garbage collection, making it ideal for configuration, scripting, and rapid prototyping.

,
then one guy wrote two tutorials, Integrating Lua into an iPhone App and Remote Debugging for Lua on the iPhone.
If you are not familiar with Xcode but familiar with Lua, maybe you can try iLuaBox.

P.S.

iLuaBox is an iOS application that hosts the Lua scripting environment. iLuaBox provides an intuitive environment to learn, write, and test scripts written in the Lua Programming Language. This is not a stripped down version of Lua, but rather a full-featured implementation that is optimized for iOS and the iPad hardware platform.

Leave a Reply