rubymotion-community / sugarcube

Some sugar for your cocoa. RubyMotion helpers.
Other
422 stars 66 forks source link

Error when compiling along side pro_motion_slide_menu #140

Closed devth closed 10 years ago

devth commented 10 years ago

I'm using the https://github.com/macfanatic/promotion_slide_menu gem. If I add sugarcube, I get this error during compile:

2014-05-24 06:53:49.366 ruby[9286:d0f] unrecognized runtime type
`{PKRevealController=#@@@@@@@@@@@@@@@@@@@@@@@@iii@@{CGSize=ff}{CGSize=ff}@@?i@{?=b2b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1}}'
(TypeError)
2014-05-24 06:53:49.373 ruby[9286:d0f] *** Terminating app due to uncaught
exception 'TypeError', reason: 'unrecognized runtime type
`{PKRevealController=#@@@@@@@@@@@@@@@@@@@@@@@@iii@@{CGSize=ff}{CGSize=ff}@@?i@{?=b2b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1}}'
(TypeError)
'
*** Call stack at first throw:
(
    0   CoreFoundation                      0x9b4b4471 __raiseError + 193
    1   libobjc.A.dylib                     0x9a83c091 objc_exception_throw + 162
    2   ruby                                0x0017c47a rb_vm_raise_current_exception + 506
    3   ruby                                0x0017c562 rb_vm_raise + 226
    4   ruby                                0x00035201 rb_exc_raise + 17
    5   ruby                                0x0002e662 rb_raise + 146
    6   ruby                                0x00151679 _ZN13RoxorCompiler12convert_typeEPKc + 697
    7   ruby                                0x00155eae _ZN13RoxorCompiler12compile_stubEPKcbii + 3054
    8   ruby                                0x0019e9e8 _ZN16RoxorAOTCompiler20compile_static_stubsEv + 1496
    9   ruby                                0x001a5f09 _ZN16RoxorAOTCompiler23compile_static_bs_filesEv + 185
    10  ruby                                0x0014e67a _ZN16RoxorAOTCompiler21compile_init_functionERSt6vectorIPN4llvm8FunctionESaIS3_EE + 6058
    11  ruby                                0x0017e027 rb_vm_aot_compile + 503
    12  ruby                                0x000b5260 ruby_process_options + 512
    13  ruby                                0x00118708 main + 136
    14  ruby                                0x00002b35 start + 53
)

PKRevealController is a pod:

pod 'PKRevealController', '2.0.1'
colinta commented 10 years ago

Wow, that's a weird one! I can't do much without being able to reproduce it... could you create a small project that produces this error?

devth commented 10 years ago

Sorry I never got around to creating a repro :/