Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

49 lines (33 sloc) 1.172 kb

RubyMotion Objective-C (motion-objc)

Include simple Objective-C files in your motion project, without the need of manually create project file.


gem install motion-objc


Add following lines to your project Rakefile

require 'rubygems'
require 'motion-objc'

Add Objective-C files to your project. e.g. Create a objc folder and add .h/.m files there.

Tell motion-objc where your Objective-C files located using app.objc_files

Motion::Project::App.setup do |app| = 'MotionObjCTest'
  app.identifier = 'hk.ignition.objc'
  app.version = '1.0.0'
  app.objc_files = Dir.glob("objc/**/*.*")

How it works?

It generate a XCode project with static library target with all your specified Objective-C files, and include it in your RubyMotion project.

motion-objc is designed for adding small snippets written in Objective-C to RubyMotion project. If you need to include more complex code base, you should create a CocoaPods Spec instead.


Copyright 2012, Francis Chong, Ignition Soft.

This project is released in MIT license.

Jump to Line
Something went wrong with that request. Please try again.