mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-10 22:49:26 +08:00
a87fcea92bd274687f52e0e512b4a949f29d0666
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
$ cd vm; git checkout master; cd ..
$ bundle install
How to debug on RubyMotion app
Build RubyMotion as following (enable DEBUG environment variable)
$ DEBUG=true rake
$ sudo rake install
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
Languages
Ruby
98.5%
HTML
1.3%
Python
0.2%