rubymotion-community / sugarcube

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

Error while compiling (0.18.18~0.18.19) #41

Closed n-studio closed 11 years ago

n-studio commented 11 years ago
2013-03-10 01:13:26.110 ruby[5226:f0b] unrecognized runtime type `{_CMTime=qiIq}' (TypeError)
Can't compile stub for selector `duration': unrecognized runtime type `{_CMTime=qiIq}' (TypeError)
colinta commented 11 years ago

can you run that with rake debug=1 and try and narrow down where that's being called? The only place I call duration (I thought) was in the UIView extensions, and I use the send method there...

n-studio commented 11 years ago

Sure! Here is the full log

Lidners-MacBook-Air:appEigoDePi-master lidner$ rake debug=1
     Build ./build/iPhoneSimulator-5.0-Development
     Build vendor/Pods
     Build ../../../Cocoa/TestFlightSDK
   Compile /Users/lidner/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/sugarcube-0.18.19/lib/sugarcube/adjust.rb
   Compile /Users/lidner/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/sugarcube-0.18.19/lib/sugarcube/activesupport.rb
   Compile /Users/lidner/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/sugarcube-0.18.19/lib/sugarcube/date_parser.rb
   Compile /Users/lidner/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/sugarcube-0.18.19/lib/sugarcube/nsarray.rb
2013-03-10 01:37:10.438 ruby[6301:f0b] unrecognized runtime type `{_CMTime=qiIq}' (TypeError)
Can't compile stub for selector `duration': unrecognized runtime type `{_CMTime=qiIq}' (TypeError)
rake aborted!
Command failed with status (1): [/usr/bin/env VM_KERNEL_PATH="/Library/Ruby...]
/Library/RubyMotion/lib/motion/project/builder.rb:91:in `block (2 levels) in build'
/Library/RubyMotion/lib/motion/project/builder.rb:83:in `each'
/Library/RubyMotion/lib/motion/project/builder.rb:83:in `block in build'
/Library/RubyMotion/lib/motion/project/builder.rb:135:in `call'
/Library/RubyMotion/lib/motion/project/builder.rb:135:in `block (2 levels) in build'
Tasks: TOP => default => simulator => build:simulator
(See full trace by running task with --trace)
colinta commented 11 years ago

thx - give 0.18.20 a whirl.

n-studio commented 11 years ago

It's working! Awesome!!

Thank you~

colinta commented 11 years ago

Thanks for the heads up! :smile:

This duration / setDuration bug is such a strange one... it's the only time this CMTime bug appears, to my knowledge. WEIRD! :-/