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
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
Motion::Project::App.setup do |app| app.name = 'MotionObjCTest' app.identifier = 'hk.ignition.objc' app.version = '1.0.0' app.objc_files = Dir.glob("objc/**/*.*") end
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.