xcpretty / xcode-install

🔽 Install and update your Xcodes
https://fastlane.tools
MIT License
2.59k stars 243 forks source link

How to change the install path? #387

Open SmileNN opened 4 years ago

SmileNN commented 4 years ago
16: from /usr/local/bin/xcversion:23:in `<main>'
    15: from /usr/local/bin/xcversion:23:in `load'
    14: from /Library/Ruby/Gems/2.6.0/gems/xcode-install-2.6.4/bin/xcversion:12:in `<top (required)>'
    13: from /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:330:in `run'
    12: from /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:352:in `parse'
    11: from /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:356:in `parse'
    10: from /Library/Ruby/Gems/2.6.0/gems/claide-1.0.3/lib/claide/command.rb:356:in `new'
     9: from /Library/Ruby/Gems/2.6.0/gems/xcode-install-2.6.4/lib/xcode/install/simulators.rb:17:in `initialize'
     8: from /Library/Ruby/Gems/2.6.0/gems/xcode-install-2.6.4/lib/xcode/install/simulators.rb:17:in `new'
     7: from /Library/Ruby/Gems/2.6.0/gems/xcode-install-2.6.4/lib/xcode/install.rb:127:in `initialize'
     6: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/fileutils.rb:200:in `mkdir_p'
     5: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/fileutils.rb:200:in `each'
     4: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/fileutils.rb:215:in `block in mkdir_p'
     3: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/fileutils.rb:215:in `reverse_each'
     2: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/fileutils.rb:217:in `block (2 levels) in mkdir_p'
     1: from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/fileutils.rb:239:in `fu_mkdir'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/fileutils.rb:239:in `mkdir': Read-only file system @ dir_s_mkdir - /u (Errno::EROFS)

There is no /u in my mac, and I wanna change it to /User/myname/, so how can I change the path used in fileutils.rb? Thanks.