Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sh: /Applications/Xcode: No such file or directory #19

Closed
Palleas opened this issue Apr 20, 2015 · 3 comments
Closed

sh: /Applications/Xcode: No such file or directory #19

Palleas opened this issue Apr 20, 2015 · 3 comments
Assignees
Labels
Milestone

Comments

@Palleas
Copy link

Palleas commented Apr 20, 2015

I've installed the application with ruby 2.2 and rbenv and I get the following error:

➜  ~  xcode-install install 6.4
sh: /Applications/Xcode: No such file or directory
/usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/xcode-install-0.1.0/lib/xcode/install.rb:223:in `get_version': undefined method `split' for nil:NilClass (NoMethodError)
    from /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/xcode-install-0.1.0/lib/xcode/install.rb:216:in `initialize'
    from /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/xcode-install-0.1.0/lib/xcode/install.rb:92:in `new'
    from /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/xcode-install-0.1.0/lib/xcode/install.rb:92:in `block in installed_versions'
    from /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/xcode-install-0.1.0/lib/xcode/install.rb:92:in `map'
    from /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/xcode-install-0.1.0/lib/xcode/install.rb:92:in `installed_versions'
    from /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/xcode-install-0.1.0/lib/xcode/install.rb:88:in `installed?'
    from /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/xcode-install-0.1.0/lib/xcode/install/install.rb:25:in `validate!'
    from /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/claide-0.8.1/lib/claide/command.rb:311:in `run'
    from /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/xcode-install-0.1.0/bin/xcode-install:12:in `<top (required)>'
    from /usr/local/opt/rbenv/versions/2.2.0/bin/xcode-install:23:in `load'
    from /usr/local/opt/rbenv/versions/2.2.0/bin/xcode-install:23:in `<main>'
➜  ~  xcode-install list
sh: /Applications/Xcode: No such file or directory
/usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/xcode-install-0.1.0/lib/xcode/install.rb:223:in `get_version': undefined method `split' for nil:NilClass (NoMethodError)
    from /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/xcode-install-0.1.0/lib/xcode/install.rb:216:in `initialize'
    from /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/xcode-install-0.1.0/lib/xcode/install.rb:92:in `new'
    from /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/xcode-install-0.1.0/lib/xcode/install.rb:92:in `block in installed_versions'
    from /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/xcode-install-0.1.0/lib/xcode/install.rb:92:in `map'
    from /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/xcode-install-0.1.0/lib/xcode/install.rb:92:in `installed_versions'
    from /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/xcode-install-0.1.0/lib/xcode/install.rb:189:in `list_versions'
    from /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/xcode-install-0.1.0/lib/xcode/install.rb:127:in `list_current'
    from /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/xcode-install-0.1.0/lib/xcode/install/list.rb:22:in `run'
    from /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/claide-0.8.1/lib/claide/command.rb:312:in `run'
    from /usr/local/opt/rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/xcode-install-0.1.0/bin/xcode-install:12:in `<top (required)>'
    from /usr/local/opt/rbenv/versions/2.2.0/bin/xcode-install:23:in `load'
    from /usr/local/opt/rbenv/versions/2.2.0/bin/xcode-install:23:in `<main>'
➜  ~  ll /Applications/Xcode*
/Applications/Xcode 2.app:
total 0
drwxr-xr-x@ 16 romain  admin   544B 26 Feb 19:09 Contents

/Applications/Xcode-beta 4.app:
total 0
drwxr-xr-x@ 16 romain  admin   544B 20 Mar 01:57 Contents

/Applications/Xcode.app:
total 0
drwxr-xr-x  17 root  wheel   578B  8 Apr 22:09 Contents
➜  ~  ruby -v
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin14]

Any idea? Thanks!

@neonichu
Copy link
Collaborator

This looks like an error with spaces in the path to existing Xcodes, in your case "/Applications/Xcode 2.app". I'll whip up a fix, in the meantime, you should be able to use XcodeInstall by removing/replacing the space.

@neonichu neonichu added the bug label Apr 20, 2015
@neonichu neonichu added this to the 1.0 milestone Apr 20, 2015
@neonichu neonichu self-assigned this Apr 20, 2015
@Palleas
Copy link
Author

Palleas commented Apr 20, 2015

Indeed, that was it :) Thanks!

@neonichu
Copy link
Collaborator

@viteinfinite was so kind to fix this in #20 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants