HipByte / motion-appstore

A RubyMotion plugin to provide 'validate' and 'upload' commands for iTunes Connect.
MIT License
52 stars 12 forks source link

Issue Installing - Permission Denied #15

Closed jwg2s closed 7 years ago

jwg2s commented 7 years ago

Failed to find anything obvious from Googling, can anyone point me in the right direction?

MacBook-Pro-2: ~/Sites/ContactuallyInMotion(develop)*$ gem install motion-appstore
Building native extensions.  This could take a while...
ERROR:  Error installing motion-appstore:
    ERROR: Failed to build gem native extension.

    current directory: /Users/johngerhardt/.rvm/gems/ruby-2.3.1@contactually-in-motion/gems/motion-appstore-1.0.11/ext
/Users/johngerhardt/.rvm/rubies/ruby-2.3.1/bin/ruby -r ./siteconf20170320-61564-1old2kl.rb extconf.rb
/Users/johngerhardt/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/fileutils.rb:358:in `symlink': Permission denied @ rb_file_s_symlink - (/Applications/Xcode.app/Contents/Applications/Application Loader.app/Contents/itms, /usr/local/itms) (Errno::EACCES)
    from /Users/johngerhardt/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/fileutils.rb:358:in `block in ln_s'
    from /Users/johngerhardt/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/fileutils.rb:1587:in `fu_each_src_dest0'
    from /Users/johngerhardt/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/fileutils.rb:356:in `ln_s'
    from /Users/johngerhardt/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/fileutils.rb:379:in `ln_sf'
    from /Users/johngerhardt/.rvm/gems/ruby-2.3.1@contactually-in-motion/gems/motion-appstore-1.0.11/ext/installer.rb:20:in `install_plugins'
    from extconf.rb:4:in `<main>'

extconf failed, exit code 1

Gem files will remain installed in /Users/johngerhardt/.rvm/gems/ruby-2.3.1@contactually-in-motion/gems/motion-appstore-1.0.11 for inspection.
Results logged to /Users/johngerhardt/.rvm/gems/ruby-2.3.1@contactually-in-motion/extensions/x86_64-darwin-16/2.3.0/motion-appstore-1.0.11/gem_make.out
jwg2s commented 7 years ago

If anyone else runs into this, here's the fix:

sudo ln -s /Applications/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/itms /usr/local/itms