3. MacRuby
Started by Laurent Sansonetti inside Apple
Initial 0.1 release in March 2008
Goal: Write OS X applications in Ruby
without any performance loss
4. MacRuby
An implementation of the Ruby language that
runs on top of the Objective-C runtime and
garbage collection
Based on Ruby 1.9
Uses LLVM
Eventually "sunsetted" by Apple :(
5. RubyMotion
Commercial product.
Write OS X and iOS applications using Ruby
Laurent Sansonetti left Apple to work on it.
Released May 3rd, 2012
Awesome community!
6. RubyMotion
Built on top of MacRuby
Uses a new LLVM-based static compiler that
generates optimized machine code
Memory model similar to Objective-C ARC
Based on Rake
http://www.rubymotion.com/
7. Cocoa
Apple's native object-oriented API for OS X
and iOS
Includes a lot of different libraries
Very mature (originally developed at
NeXTSTEP in the 80s)
18. http://rubymotion-wrappers.com
Can't use CRuby gems ('require' is not allowed)
Many wrappers and libraries specifically created
for Rubymotion and Cocoa:
https://github.com/rubymotion/motion-kit
E.g.: Motion-Kit
24. CocoaPods is like RubyGems but for Ojective-C
projects.
$ sudo gem install cocoapods
$ pod setup
$ sudo gem install motion-cocoapods
Choose a pod:
https://github.com/CocoaPods/Specs
Edit Rakefile:
require 'motion-cocoapods'
!
Motion::Project::App.setup do |app|
# ...
app.pods do
dependency 'Facebook-iOS-SDK'
end
end