Mac: command line development


#1

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.


#2
  1. Build your project with XCode (I use Xcode 4.2)
  2. copy APP_NAME.app from /Users/USERNAME/Library/Developer/Xcode/DerivedData/APP_NAME/Build/Products/Debug-iphonesimulator/APP_NAME.app to Desktop
  3. open /Desktop/APP_NAME.app/,\ you\ can\ see\ your\ lua\ files.
    after\ change\ script\ files.\ use\ iphonesim\ launch\ iPhone\ Simulator:
    <pre>
    iphonesim\ launch
    /Desktop/APP_NAME.app 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: