Watson ac89cf6b4b fix where Boxed#new doesn't work for GLKKit structure.
http://hipbyte.myjetbrains.com/youtrack/issue/RM-293

GLKKit structures are declared as the following.
If use union type when generate bridgesupport,
it is not output the definition of a data structure using <struct> tag into bridgesupport file.
So, Boxed#new does not work for these structure.

    #if defined(__STRICT_ANSI__)
    struct _GLKMatrix4
    {
        float m[16];
    } __attribute__((aligned(16)));
    typedef struct _GLKMatrix4 GLKMatrix4;
    #else
    union _GLKMatrix4
    {
        struct
        {
            float m00, m01, m02, m03;
            float m10, m11, m12, m13;
            float m20, m21, m22, m23;
            float m30, m31, m32, m33;
        };
        float m[16];
    } __attribute__((aligned(16)));
    typedef union _GLKMatrix4 GLKMatrix4;
    #endif
2013-10-22 13:22:52 +09: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-10-21 14:46:18 +09:00
2013-10-21 14:56:27 +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-10-21 21:30:55 +02:00
2012-05-03 13:25:36 +02:00
2013-10-04 17:45:47 +02:00
2012-11-10 21:51:18 +09:00

How to set up

SDKs

The latest Xcode version does not contain all the SDKs that RubyMotion supports. These are generally not required for development anyways, but if you do need them, you can download them all from here and install them like so:

  • To install, for instance, the OS X 10.7 SDK:

    $ [sudo] cp -R /path/to/SDKs-Archive/MacOSX10.7.sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs

  • To install, for instance, the iOS 6.1 SDK:

    $ [sudo] cp -R /path/to/SDKs-Archive/iPhoneSimulator6.1.sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs $ [sudo] cp -R /path/to/SDKs-Archive/iPhoneOS6.1.sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs

Compilers

You need to have Xcode 5 installed as /Applications/Xcode.app.

You also need to have Xcode 4 installed as /Applications/Xcode4.app. Xcode 4 is only required to build the REPL module.

You also need to have installed the latest version of the command-line tools. /usr/bin/clang -v should report the following:

Apple LLVM version 5.0 (clang-500.2.75) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin12.4.1
Thread model: posix

Clone RubyMotion source

$ git clone git@github.com:lrz/RubyMotion.git

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.patch
$ 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

$ cd /path/to/RubyMotionRepository
$ git submodule update --init
$ cd vm; git checkout master; cd ..
$ bundle install

How to debug on RubyMotion app

Build RubyMotion as following (enable DEBUG environment variable)

$ env 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
No description provided
Readme BSD-2-Clause 9.6 MiB
Languages
Ruby 98.5%
HTML 1.3%
Python 0.2%