rubymotion-community / sugarcube

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

Unable to install through bundler #11

Closed defvol closed 12 years ago

defvol commented 12 years ago

I get _unrecognized runtime type CMTime

Compile /Users/rod/CitiVox/m/Vox/vendor/bundle/ruby/1.9.1/bundler/gems/sugarcube-4b507e9c5b7f/lib/sugarcube/uiview.rb
2012-09-19 12:47:39.966 ruby[21398:f0b] unrecognized runtime type `{_CMTime=qiIq}' (TypeError)
Can't compile stub for selector `setDuration:': unrecognized runtime type `{_CMTime=qiIq}' (TypeError)

The same happens for nsset.rb

defvol commented 12 years ago

Looks like the problem is in https://github.com/rubymotion/sugarcube/blob/master/lib/sugarcube/uiview.rb line 167

Where you try to set duration for a CAKeyframeAnimation. There's no duration property in the Apple documentation for that class nor in CAPropertyAnimation

colinta commented 12 years ago

are you testing ios 6? it's working for me in ios 5.1...

defvol commented 12 years ago

I'm testing 5.1, and @cicloid is testing on 6.0

defvol commented 12 years ago

Ok, I see ... it's not an unrecognized selector but an unrecognized type

defvol commented 12 years ago

Same issue in nsdate_delta.rb and there's no setDuration

Compile /Users/rod/CitiVox/m/Vox/vendor/bundle/ruby/1.9.1/bundler/gems/sugarcube-4b507e9c5b7f/lib/sugarcube/nsdate_delta.rb
2012-09-19 13:20:28.676 ruby[22813:f0b] unrecognized runtime type `{_CMTime=qiIq}' (TypeError)
unrecognized runtime type `{_CMTime=qiIq}' (TypeError)
colinta commented 12 years ago

Closing this. It ended up being a combination of other projects - I think it was NSXImage that caused this bizarre error.

defvol commented 12 years ago

:+1: agree ... removing NYXImagesKit fixed the problem

katsuyoshi commented 12 years ago

I have same issue {_CMTime=qiIq}. In my case, remove nsdate.rb (not nsdate_delta.rb) and use your(@colinta) uiview patch https://github.com/rubymotion/sugarcube/commit/bd8bf63b13b100957e823487a88e9c1176efe159. I could compile it successfully.

DougPuchalski commented 11 years ago

I'm getting this error with GameKit framework included