Let's start with the classic
HelloWorld
application. As we have discussed in the last chapter, RubyMotion has a terminal-based flow, so let's fire up our terminal and create our very first RubyMotion application.
$motion create HelloWorld
Create HelloWorld
Create HelloWorld/.gitignore
Create HelloWorld/Rakefile
Create HelloWorld/app
Create HelloWorld/app/app_delegate.rb
Create HelloWorld/resources
Create HelloWorld/spec
Create HelloWorld/spec/main_spec.rb
If you observe closely the output on the terminal screen, you will see that a lot of files and directories have been generated by a single motion
command, which automatically creates standard directories, and you will also see the file structure that will quickly bring us onboard with app development, which we can work on later and enhance to make a fully functional application. Moreover, since the structure is common to all the RubyMotion apps, it's easy to understand.