Mac: command line development


Is it possible to compile and run Lua based cocos2d-x application from a command line? I have xcode installed but prefer to develop Lua applications in emacs. The same question in Windows environment.

  1. Build your project with XCode (I use Xcode 4.2)
  2. copy from /Users/USERNAME/Library/Developer/Xcode/DerivedData/APP_NAME/Build/Products/Debug-iphonesimulator/ to Desktop
  3. open /Desktop/,\ you\ can\ see\ your\ lua\ files.
    after\ change\ script\ files.\ use\ iphonesim\ launch\ iPhone\ Simulator:
    iphonesim\ launch
    /Desktop/ sdk 4.3stderr /Desktop/APP_NAME_ERROR.log\ -stdout/Desktop/APP_NAME_LOG.log
Use /Applications/Utilities/Console view log files.

good luck :slight_smile: