XcodeScriptingBridge is a project mainly written in LUA and OBJECTIVE-C, it's free.
Example of how to use Scripting Bridge (via LuaCocoa) to control and automate Xcode for the purposes of automated on-device iOS testing
Example of how to use Scripting Bridge (via LuaCocoa) to control and automate Xcode for the purposes of automated on-device iOS testing
http://playcontrol.net/ewing/jibberjabber/automated-mobile-test-part2.html