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

BW::UIAlertView.plain_text_input crashes on the device #471

Open kapso opened 9 years ago

kapso commented 9 years ago

Following code is crashing on the device. It works fine on Simulator, but on the device it crashes

options  = { buttons: ["OK"], message: "Confirm your zip code", title: "Zip Code" }
alert = BW::UIAlertView.plain_text_input(options) do |alert|
  @zip_code = alert.plain_text_field.text
end

alert.show

Device - iOS v8.4 (iPhone 6)

app.sdk_version = "8.4"
app.deployment_target = "7.0"
$ motion --version
3.14
gem "bubble-wrap", "1.9.2", require: false
kapso commented 9 years ago

Anyone know what is the issue here?

markrickert commented 9 years ago

You're setting require: false in your gemfile... are you doing require 'bubble-wrap' in your rakefile?

kapso commented 9 years ago

This is what I have in my Rakefile

require "bubble-wrap/core" require "bubble-wrap/mail" require "bubble-wrap/reactor" require "bubble-wrap/sms"

via mobile device, please excuse typos and terseness.

On Aug 13, 2015, at 8:50 AM, Mark Rickert notifications@github.com wrote:

You're setting require: false in your gemfile... are you doing require 'bubble-wrap' in your rakefile?

— Reply to this email directly or view it on GitHub.

markrickert commented 9 years ago

Try removing those lines from your rakefile and use this in your gemfile:

gem "bubble-wrap", "~> 1.9.2", require: %w[bubble-wrap/core bubble-wrap/mail bubble-wrap/reactor bubble-wrap/sms]

kapso commented 9 years ago

Yea tried your suggestions but same thing, it still crashes

@markrickert BTW thanks for looking into this.

markrickert commented 9 years ago

Can you create a simple app that reproduces the issue? I definitely want to get this fixed, but you might also like to look into the gem RedAlert for the same (but more robust) functionality

kapso commented 9 years ago

Looks nice, but our's is not a RMQ application, do you know if we can still use this gem?