rubymotion-community / sugarcube

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

Incompatible with MessageUI framework #19

Closed pachun closed 11 years ago

pachun commented 11 years ago

You can't have MessageUI and sugarcube in the same project. You get:

2012-12-13 23:26:26.618 ruby[27783:f0b] unrecognized runtime type `{_CMTime=qiIq}' (TypeError)
Can't compile stub for selector `setDuration:': unrecognized runtime type `{_CMTime=qiIq}' (TypeError)
andyw8 commented 11 years ago

This is likely related to #11 and #17. I'm having the same problem.

macfanatic commented 11 years ago

Any idea what would be causing this? I included the Message UI framework as mentioned in #19 and now I can't compile b/c it appears CFTimeInterval isn't defined, for CAKeyframeAnimation.setDuration().

If I just comment out the following line in uiview.rb I can at least compile. Works for me since I'm not using UIView#shake in my application.

https://github.com/rubymotion/sugarcube/blob/master/lib/sugarcube/uiview.rb#L235

dkrusenstrahle commented 11 years ago

Any solution to this issue coming?

colinta commented 11 years ago

I was kind of hoping if I ignored it some RM update would magically fix it ;-)

I'm using the MessageUI framework and I don't have this error, but I'll try building a fresh project, to see if I can recreate the error.

On Jan 25, 2013, at 1:12 AM, dkrusenstrahle notifications@github.com wrote:

Any solution to this issue coming?

\ Reply to this email directly or view it on GitHub.

dkrusenstrahle commented 11 years ago

Any idea how to fix this?

colinta commented 11 years ago

Hey, I finally duplicated the error message! Excellent - in the past, I've not been able to reproduce it! Gimme FIVE minutes ;-)

colinta commented 11 years ago

I was able to "avoid" the error message by using send(:'setDuration:', duration), but that's not much of a fix. Brought it up with @lrz and he thinks it's a compiler issue with the CMTime struct, so for now, version 0.18.5 has the fix.