XCode 5 yields "no such file to load - rhoconnect-client" error

Ok, I FINALLY got my app to run in RMS using both rhosimulator and the iphone sim as well, synchronizing with rhoconnect and all (yay!).  With that success, I ran the two commands to prepare my app for XCode.  I got into XCode5, attempted to build, and it tells me:

"no such file to load - rhoconnect-client"

Huh???  It just ran fine over in iphone sim launched from RMS.  Ideas on this one?

Rob

Lars Burgess
This one's tricky, because

This one's tricky, because when you launch RhoStudio it prompts you for which rvm ruby environment to use. When XCode launches it will just use the default ruby environment you have, so if the rvm ruby environment you use from RhoStudio/command line doesn't match your default then xcode won't find the installed gems.

-Lars

Vote: 
Vote up!
Vote down!

Points: 1

You voted ‘up’


Rob Richard
Thanks Lars.  I only have one

Thanks Lars.  I only have one ruby version installed, and went out and made sure it was the default (no default was previously set, but I set the lone version I had as default and it shows properly now when doing rvm list default).  Where would I find the extension (it is not in the extensions folder like the JSON extension).  Also, one thing odd that I noticed is that there is a rhosynclib project in Xcode for this project.  Is thaqt correct, or should that actually be rhoconnectclient - doing some looking around in the folders I did find a project for rhoconnectclient and wondered if that might be the problem.  Any other ideas how I can get Xcode to see rhoconnect-client?

Rob

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Rob Richard
: I finally got rvm  setup

: I finally got rvm  setup and behaving properly, but rhoconnect-client still unable to be loaded.  Is my path correct?  Should I make modifications to it?

/Users/robrichard/.rvm/gems/ruby-1.9.3-p448/bin:/Users/robrichard/.rvm/gems/ruby-1.9.3-p448@global/bin:/Users/robrichard/.rvm/rubies/ruby-1.9.3-p448/bin:/Users/robrichard/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Lars Burgess
So when you just open a fresh

So when you just open a fresh terminal and do the following:

$ gem env

$ gem list rhoconnect-client

Does it show proper environment and list rhoconnect-client there?

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Rob Richard
Robs-MacBook:~ robrichard$

Robs-MacBook:~ robrichard$ gem env

RubyGems Environment:

  - RUBYGEMS VERSION: 2.1.5

  - RUBY VERSION: 1.9.3 (2013-06-27 patchlevel 448) [x86_64-darwin12.5.0]

  - INSTALLATION DIRECTORY: /Users/robrichard/.rvm/gems/ruby-1.9.3-p448

  - RUBY EXECUTABLE: /Users/robrichard/.rvm/rubies/ruby-1.9.3-p448/bin/ruby

  - EXECUTABLE DIRECTORY: /Users/robrichard/.rvm/gems/ruby-1.9.3-p448/bin

  - SPEC CACHE DIRECTORY: /Users/robrichard/.gem/specs

  - RUBYGEMS PLATFORMS:

    - ruby

    - x86_64-darwin-12

  - GEM PATHS:

     - /Users/robrichard/.rvm/gems/ruby-1.9.3-p448

     - /Users/robrichard/.rvm/gems/ruby-1.9.3-p448@global

  - GEM CONFIGURATION:

     - :update_sources => true

     - :verbose => true

     - :backtrace => false

     - :bulk_threshold => 1000

  - REMOTE SOURCES:

     - https://rubygems.org/

  - SHELL PATH:

     - /Users/robrichard/.rvm/gems/ruby-1.9.3-p448/bin

     - /Users/robrichard/.rvm/gems/ruby-1.9.3-p448@global/bin

     - /Users/robrichard/.rvm/rubies/ruby-1.9.3-p448/bin

     - /Users/robrichard/.rvm/gems/ruby-1.9.3-p448/bin

     - /Users/robrichard/.rvm/gems/ruby-1.9.3-p448@global/bin

     - /Users/robrichard/.rvm/rubies/ruby-1.9.3-p448/bin

     - /Users/robrichard/.rvm/bin

     - /usr/bin

     - /bin

     - /usr/sbin

     - /sbin

     - /usr/local/bin

Robs-MacBook:~ robrichard$ gem list rhoconnect-client

*** LOCAL GEMS ***

rhoconnect-client (4.0.0)

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Lars Burgess
Ok good, that's what we want

Ok good, that's what we want to see.  Unfortunately my environment is not building for XCode just yet, probably due to some issues discussed in this thread:

https://developer.motorolasolutions.com/message/12397?et=watches.email.thread#12397

Once I can build on XCode I'll follow up here.  Just a quick check, you are able to build the app fine from the command line?  That should be working with no issues.

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Lars Burgess
Ok here are the steps to get

Ok here are the steps to get it working, at least these worked for me.  I believe this will be fixed in the next patch release or certainly in 4.1:

1) Install vanilla RMS (used my 1.9.3-p448 non-global gemset environment)

2) ensure you have the following line in ~/.profile, ~/.bash_profile and ~/.bashrc (replace yourusername with your real username):

[[ -s "/Users/yourusername/.rvm/scripts/rvm" ]] && source "/Users/yourusername/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*

3) rhodes app helloworld

4) cd helloworld

5) rake run:iphone # just need to do this once

6) rake build:iphone:setup_xcode_project

7) open ~/.rvm/gems/ruby-1.9.3-p448/gems/rhodes-4.0.0/platform/iphone/rhorunner.xcodeproj

8) build for iphone simulator or device iOS7

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Julia Segal
Thanks, it worked for me too

Thanks, it worked for me too.

I also had to do the following to clean out the directory.

$gem pristine rhodes

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Michael Toews
Just for specificity's sake,

Just for specificity's sake, the exact file to add this line to is ~/.profile

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Rob Richard
Yep, worked for me!  Thanks !

Yep, worked for me!  Thanks !

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Julia Segal
I'm seeing the same problem

I'm seeing the same problem in Xcode (Version 5.0 (5A1413)  and cannot build for iOS. 

Can't find extension 'rhoconnect-client'. Aborting build.

Any progress on finding the answer?

I've got the lib:

$gem list rhoconnect-client

*** LOCAL GEMS ***

rhoconnect-client (4.0.0)

$gem env

RubyGems Environment:

  - RUBYGEMS VERSION: 2.0.7

  - RUBY VERSION: 1.9.3 (2013-06-27 patchlevel 448) [x86_64-darwin12.4.0]

  - INSTALLATION DIRECTORY: /Users/julia/.rvm/gems/ruby-1.9.3-p448

  - RUBY EXECUTABLE: /Users/julia/.rvm/rubies/ruby-1.9.3-p448/bin/ruby

  - EXECUTABLE DIRECTORY: /Users/julia/.rvm/gems/ruby-1.9.3-p448/bin

  - RUBYGEMS PLATFORMS:

    - ruby

    - x86_64-darwin-12

  - GEM PATHS:

     - /Users/julia/.rvm/gems/ruby-1.9.3-p448

     - /Users/julia/.rvm/gems/ruby-1.9.3-p448@global

  - GEM CONFIGURATION:

     - :update_sources => true

     - :verbose => true

     - :backtrace => false

     - :bulk_threshold => 1000

  - REMOTE SOURCES:

     - https://rubygems.org/

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments