Watson 39fe258508 fix a bug in build system where it cannot build app with Korean as app.name
http://hipbyte.myjetbrains.com/youtrack/issue/RM-247

1)
  String#encode cannot convert from UTF8-MAC to UTF-8 propery.
  Looks like iconv library handles it, however Ruby 2.0 does not bundle iconv library.
  So, we need to bundle the tool/library to convert the encoding using the Objective-C API in order to convert reliably.

  If we bundled it as Ruby C extension library, it will not work between 1.8/1.9/2.0 because Ruby 1.8/1.9/2.0 have not binary compatibility.
  So, we need to bundle three binaries for 1.8/1.9/2.0.

  Therefore, we bundles an executable binary to convert the encoding.

2)
  If we converted from NFD to NFC, it might not match between original NFC and converted NFC even if we used Objective-C API.
  We should normalized with NFD where it handles the string which retrived from filesystem.
2013-09-02 14:28:51 +09:00
2013-08-26 15:20:56 +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-08-22 16:59:12 +09:00
2013-04-29 21:07:39 +02:00
2012-09-06 15:45:42 +02:00
2013-08-22 13:06:49 +09:00
2013-02-14 15:24:08 +09:00
2013-02-14 15:24:08 +09:00
2013-08-28 13:20:23 +09:00
2012-05-03 13:25:36 +02:00
2.8
2013-08-28 13:15:49 +09:00
2013-02-14 15:33:42 +09:00
2012-11-10 21:51:18 +09:00

How to set up

Set up LLVM

$ curl -O http://llvm.org/releases/2.9/llvm-2.9.tgz
$ tar xvzf llvm-2.9.tgz
$ cd llvm-2.9
$ 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

Then,

$ cp /Library/RubyMotion/bin/llc /usr/local/bin/

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%