rubymotion-community / BubbleWrap

Cocoa wrappers and helpers for RubyMotion (Ruby for iOS and OS X) - Making Cocoa APIs more Ruby like, one API at a time. Fork away and send your pull requests
Other
1.18k stars 208 forks source link

Bubble wrap compiler errors on 11.4 (Xcode 9.4) #498

Open amirrajan opened 6 years ago

amirrajan commented 6 years ago

Confirmed bubblewrap does not build on iOS 11.4, XCode 9.4:

2018-05-29 22:32:12.504 bubble-wrap-hello-world[76798:4384342] /usr/local/var/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bubble-wrap-1.9.6/motion/core/device/i: uninitialized constant BubbleWrap::Device::Camera::KUTTypeMovie (NameError)
        from /usr/local/var/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bubble-wrap-1.9.6/motion/core/device/i
        from /usr/local/var/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bubble-wrap-1.9.6/motion/core/device/i
        from /usr/local/var/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bubble-wrap-1.9.6/motion/core/device/i
2018-05-29 22:32:12.513 bubble-wrap-hello-world[76798:4384342] *** Terminating app due to uncaught exception 'NameError', reason: '/usr/local/var/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bubble-wrap-1.9.6/motion/core/device/i: uninitialized constant BubbleWrap::Device::Camera::KUTTypeMovie (NameError)
        from /usr/local/var/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bubble-wrap-1.9.6/motion/core/device/i
        from /usr/local/var/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bubble-wrap-1.9.6/motion/core/device/i
        from /usr/local/var/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bubble-wrap-1.9.6/motion/core/device/i

(crash log truncation will be fixed soon, sorry for the delay in that).

The constant that is causing issues is KUTTypeMovie.

amirrajan commented 6 years ago

The workaround (until the entry is applied within BubbleWrap) is to add the following line to your rake file:

app.frameworks << "MobileCoreServices"

joerichsen commented 6 years ago

Please note that it is

app.frameworks << "MobileCoreServices"

(a 'c' is missing in the last comment)

ben5516 commented 4 years ago

I'm seeing this again in RM 7.3 and Xcode 11.4, even with the workaround.

andrewhavens commented 4 years ago

@ben5516 Are you seeing errors with the same constant? KUTTypeMovie

ben5516 commented 4 years ago

yes