Sha256: 973b3fe2027ec6572c7051eed7cbbcef8c0ebdaa40d26cc4f3bc8b5e30be1f76

Contents?: true

Size: 1.14 KB

Versions: 4

Compression:

Stored size: 1.14 KB

Contents

# 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```

```ruby
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```

```ruby
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](https://github.com/CocoaPods/CocoaPods) instead.

## License

Copyright 2012, Francis Chong, Ignition Soft.

This project is released in MIT license.

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
motion-objc-0.2.1 README.md
motion-objc-0.2.0 README.md
motion-objc-0.1.1 README.md
motion-objc-0.1.0 README.md