0.01
No commit activity in last 3 years
No release in over 3 years
Simply include Objective-C files in your RubyMotion projects
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.3.0
 Project Readme

RubyMotion Objective-C (motion-objc)

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

Installation

gem install motion-objc

Setup

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

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.

License

Copyright 2012, Francis Chong, Ignition Soft.

This project is released in MIT license.