RubyMotion: uninitialized constant BubbleWrap::UIAlertViewStyleDefault - ios

I just started out with RubyMotion. I cloned a sample tweets app from https://github.com/addamh/tweetr. But when i run it, i get the following error:
$ rake
Build ./build/iPhoneSimulator-4.3-Development
Simulate ./build/iPhoneSimulator-4.3-Development/tweetr.app
2013-05-25 16:09:00.945 tweetr[30589:11103] uninitialized constant BubbleWrap::UIAlertViewStyleDefault (NameError)
Does anyone know why that could be? Am running mac osx lion (10.7.5) with XCode 4.1

Upgrading Xcode from 4.1 to 4.6.2 fixed it.

Related

Rails 6 - Phusion error for uninitialized constant URI::Generic

I'm using rails 6.0.3.4, ruby 2.5.0 with nginx/1.18.0 (Ubuntu). Everything was fine until I did a new deploy (using capistrano) and suddenly I'm getting Could not spawn process for application /home/deploy/appname/current: The application encountered the following error: uninitialized constant URI::Generic (NameError).
I have required these in application.rb (also tested requiring in the model) with no luck:
require 'uri'
require "uri/generic"
At this point, I'm not sure what could be wrong.
Thanks in advance if anyone has any suggestions.
It seemed it was a bug between Rails and Ruby, so I upgraded my Rails to the current stable version as well as upgraded my ruby version.

How do I resolve this error that keeps me from starting Rails server?

I have searched documentation to this error that I have never seen before in working with Ruby on Rails. I just got a new MacBook and I installed Rails 4.2 and Ruby 2.4 and when I attempt to run rails server, I get this error:
.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/thread_safe-0.3.5/lib/thread_safe/cache.rb:155: warning: constant ::Fixnum is deprecated
How do I eliminate this error that is keeping me from starting up the Rails server?
Im not sure if that's the issue, since what you are seeing is just a warning. That warning appears because you are using ruby 2.4.0.
This version introduced this change: Unify Fixnum and Bignum into Integer
See here for the announcement: https://www.ruby-lang.org/en/news/2016/12/25/ruby-2-4-0-released/Z
The warnings come from the activesupport gem which is part of rails, and they will fix it soon.
Try downgrading your Ruby Version to 2.1 and try again.
Source

Can't start rails server; bin/rails:6: warning: already initialized constant APP_PATH

I have somehow managed to break my rails, but I can't figure out what to do to fix it. I get this error:
bin/rails:6: warning: already initialized constant APP_PATH
when trying to run both
rails s
and
rails server
Now, through some googling it was suggested to run:
rake rails:update:bin
But if I run that, I get this:
rake aborted!
LoadError: dlopen(/Users/TK/.rvm/gems/ruby-2.1.2/gems/pg-0.17.1/lib/pg_ext.bundle, 9): Library not loaded: ##HOMEBREW_PREFIX##/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/lib/libpq.5.6.dylib
Reason: image not found - /Users/TK/.rvm/gems/ruby-2.1.2/gems/pg-0.17.1/lib/pg_ext.bundle
I've been trying to fix this for a whole day now, but just can't manage. I've tried using different ruby versions via rvm, reinstalling rvm, reinstalling ruby, reinstalling rails. I'm on OSX Yosemite if that makes a difference.
I'd be super thankful for any suggestions.
Thank you in advance!

Rake cannot load sqlite3 file

I am new to Ruby on Rails and am simply trying to setup a sample application by following a getting started guide. I am installing Rails on a Mac OS X Mountain Lion. I get rails working where I can run the default getting started application. When I try to run the rake db:create command, however, I am getting the following message:
rake aborted!
cannot load such file -- sqlite3/sqlite3_native
I know there are a bunch of questions asked and answered regarding this but none of the suggestions already identified have been able to help.
Please let me know what I can do to get this working.
Thanks
Cameron

Error while starting sproutcore server uninitialized constant SproutCore::Rack::Proxy

Issued sc-server command from the app and i got the above error. Using fixures in my program.
seems like you Sproutcore install is messed up. Are you using the latest version of Ruby, and are the Gems all updated?

Resources