LoginSignup
7
7

More than 5 years have passed since last update.

RubyMotionからCocoaPodsを使う

Last updated at Posted at 2012-07-26

GemfileとRakefileにそれぞれ以下のように設定して、rakeを叩くだけで使えるようになる(一緒にコンパイルしてくれる)。

Gemfile
source :rubygems
gem 'motion-cocoapods'
Rakefile
# -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project'
require 'motion-cocoapods'

require 'rubygems'
require 'bundler'
Bundler.require

Motion::Project::App.setup do |app|
  # Use `rake config' to see complete project settings.
  app.name = 'hogehoge'
  app.pods do
    pod 'STLOAuth'
  end
end

cocoapodsを追加する場合は、まず/vendor/Podsディレクトリを削除してから、再度rakeコマンドを走らせる必要がある。

7
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
7