Laurent Sansonetti 6d0c15aa2b sync
2013-09-12 00:17:04 +02:00
2013-09-09 00:03:35 +02:00
2013-09-11 13:27:09 +02:00
2013-04-25 02:26:56 +02:00
2012-05-09 12:09:36 +02:00
2013-08-21 09:32:47 +09:00
2013-09-07 09:44:02 +09:00
2012-09-06 15:45:42 +02:00
2013-09-10 09:37:39 +09:00
2013-02-14 15:24:08 +09:00
2013-02-14 15:24:08 +09:00
2013-09-09 02:26:09 +02:00
2013-09-12 00:17:04 +02:00
2012-05-03 13:25:36 +02:00
2013-09-09 00:03:35 +02:00
2013-09-09 02:25:42 +02:00
2012-11-10 21:51:18 +09:00

How to set up

Set up LLVM

$ svn checkout https://llvm.org/svn/llvm-project/llvm/branches/release_33 llvm-3.3
$ cd llvm-3.3 
$ patch -p0 < /path/to/RubyMotionRepository/llvm.diff
$ env UNIVERSAL=1 UNIVERSAL_ARCH="i386 x86_64" CC=/usr/bin/gcc CXX=/usr/bin/g++ ./configure --enable-bindings=none --enable-optimized --with-llvmgccdir=/tmp
$ env UNIVERSAL=1 UNIVERSAL_ARCH="i386 x86_64" CC=/usr/bin/gcc CXX=/usr/bin/g++ make
$ sudo env UNIVERSAL=1 UNIVERSAL_ARCH="i386 x86_64" CC=/usr/bin/gcc CXX=/usr/bin/g++ make install

Set up RubyMotion

$ git clone git@github.com:lrz/RubyMotion.git
$ cd RubyMotion
$ git submodule init
$ git submodule update
$ bundle install

How to debug on RubyMotion app

First, comment out [ios, sim].map ... (line 31) in data/Rakefile as following:

 29     # remove debug symbols
 30     strip = File.join(PLATFORMS_DIR, '../usr/bin/strip')
 31     # [ios, sim].map { |x| Dir.glob(x + '/*.{a,dylib}') }.flatten.each { |x| sh("\"#{strip}\" -S \"#{x}\"") }

Then, build RubyMotion

$ rake optz_level=0
$ sudo rake install

At last, debug on RubyMotion app

$ rake debug=1 no_continue=1

Or, debug on RubyMotion app in iOS device

$ rake device debug=1 no_continue=1
Description
No description provided
Readme BSD-2-Clause 9.6 MiB
Languages
Ruby 98.5%
HTML 1.3%
Python 0.2%