Creating a New App

RubyMotion exists on the command line, so you should know the basics of navigating around a shell. The motion command is installed when you run the RubyMotion installer. It’s equivalent to the rails command in the Ruby realm. motion manages individual projects in addition to the core RubyMotion tools. For example, motion update automatically updates RubyMotion and motion support lets you file bug reports.

Let’s open a terminal and navigate to where you want to create your RubyMotion projects. We’re going to create a few projects over the course of this book, so your work area should preferably be somewhere without any other files or folders. Once you’ve picked that out, run motion create HelloMotion.

 $ ​​motion​​ ​​

Get RubyMotion now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.