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

iOS 11 image picker controller crash #492

Closed apriltg closed 5 years ago

apriltg commented 7 years ago

no issue for camera. only crash when choosing photo from photo library.

bubble-wrap (1.9.6) rubymotion 5.0 ruby-2.2.1 xcode 8.3.3

BW::Device.camera.any.picture({media_types: [:image]}, controller, &block)

ERROR: can't modify frozen/immutable hash (RuntimeError) camera.rb line 188 rb_scopeimagePickerController:didFinishPickingMediaWithInfo:block__

apriltg commented 7 years ago

I have created a PR. Just deleting one line of code.

https://github.com/rubymotion/BubbleWrap/pull/493

andrewhavens commented 5 years ago

This has been merged and will be included in the next release