layout | seo_title | heading_baseline |
---|---|---|
default |
RubyMotion Applied |
An example/tutorial based approach to learning mobile development with Ruby. |
This page contains documentation that will help you get started with building mobile apps using Ruby. Content on this page is released under Apache 2.0 and can be found here. Feel free to contribute your own documentation or provide suggestions via GitHub Issues.
- Join the RubyMotion Slack Channel.
- These tutorials should be done in order.
- The tutorials are ordered in increasing difficulty, by platform:
- iPhone/iPad
- Android
- Cross Platform Mobile
- Non-mobile Development: MacOS, tvOS, WatchOS (requires at least a RubyMotion Indie License)
- Game Development: iPhone, iPad, Android, and Cross Platform
- The RubyMotion Runtime itself
- Tutorials target the latest stable iOS/Android releases (unless stated otherwise).
- The WNDX School (paid) has some more in-depth video courses. Courses in beta are currently free.
- Getting Your Mac Set Up for iOS Development
- Wrapping a Responsive Website and Deploying to the AppStore
- Adding a
UIButton
programmatically and wiring it up to do something when tapped - Working with the
UINavigationController
- Working with the
UITableViewController
- Building Layouts using Masonry
- Interacting with JSON APIs AFNetworking
- Working with Isolated Storage
- IAP/Monetization
- Push Notifications
- RubyMotion Tutorial for Objective C Developers
NOTE: RubyMotion is currently closed source, but will become more open with time. These tutorials will give you insight into how RubyMotion works behind the scenes, and what you'd need to learn in order to work on RubyMotion (as the source code becomes more open). These are fairly advanced tutorials, and are not required to build apps with RubyMotion.
- RubyMotion Rake Tasks Demystified
- Creating Foreign Function Interfaces to C++ Libraries using
rubmotion.h
- Setting Up Your Mac to Build RubyMotion from Source
- LLVM Crash Course
TODO
Paste this at a terminal prompt
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Paste this at a terminal prompt
curl -sSL https://get.rvm.io | bash -s stable --ruby
Install Xcode, launch it, and click 'yes' when asked if you want to install additional components
Use motion-provisioning Add this line to your application's Gemfile:
gem 'motion-provisioning'
and then add the info from the motion-provisioning README to your rakefile:
Motion::Project::App.setup do |app|
app.name = 'My App'
app.identifier = 'com.example.myapp'
app.development do
app.codesign_certificate = MotionProvisioning.certificate(
type: :development,
platform: :ios)
app.provisioning_profile = MotionProvisioning.profile(
bundle_identifier: app.identifier,
app_name: app.name,
platform: :ios,
type: :development)
end
app.release do
app.codesign_certificate = MotionProvisioning.certificate(
type: :distribution,
platform: :ios)
app.provisioning_profile = MotionProvisioning.profile(
bundle_identifier: app.identifier,
app_name: app.name,
platform: :ios,
type: :distribution)
end
end
motion create hello_world --template=iOS
cd hello_world
bundle install
rake pod:install #optional--only if you add pods to your Rakefile
rake device_name='iPhone 8'
cd hello_world
rake device