Skip to content

Commit 102bc31

Browse files
committed
Add CLI installer
1 parent 7b64e49 commit 102bc31

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ to a dialog popping up. Feel free to dupe [the radar][5]. 📡
151151

152152
XcodeInstall normally relies on the Spotlight index to locate installed versions of Xcode. If you use it while
153153
indexing is happening, it might show inaccurate results and it will not be able to see installed
154-
versions on unindexed volumes.
154+
versions on unindexed volumes.
155155

156156
To workaround the Spotlight limitation, XcodeInstall searches `/Applications` folder to locate Xcodes when Spotlight is disabled on the machine, or when Spotlight query for Xcode does not return any results. But it still won't work if your Xcodes are not located under `/Applications` folder.
157157

lib/xcode/install.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ def fetch(url: nil,
3131
progress: nil,
3232
progress_block: nil)
3333
options = cookies.nil? ? [] : ['--cookie', cookies, '--cookie-jar', COOKIES_PATH]
34-
3534
uri = URI.parse(url)
3635
output ||= File.basename(uri.path)
3736
output = (Pathname.new(directory) + Pathname.new(output)) if directory
@@ -329,7 +328,7 @@ def mount(dmg_path)
329328
node.text
330329
end
331330

332-
private
331+
#private
333332

334333
def spaceship
335334
@spaceship ||= begin

lib/xcode/install/command.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ class Command < CLAide::Command
2020
require 'xcode/install/list'
2121
require 'xcode/install/select'
2222
require 'xcode/install/selected'
23+
require 'xcode/install/simulators'
24+
require 'xcode/install/tools.rb'
2325
require 'xcode/install/uninstall'
2426
require 'xcode/install/update'
25-
require 'xcode/install/simulators'
2627

2728
self.abstract_command = true
2829
self.command = 'xcversion'

xcode-install.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ Gem::Specification.new do |spec|
2727
# contains spaceship, which is used for auth and dev portal interactions
2828
spec.add_dependency 'fastlane', '>= 2.1.0', '< 3.0.0'
2929

30-
spec.add_development_dependency 'bundler', '~> 1.7'
30+
spec.add_development_dependency 'bundler', '~> 2.0.2'
3131
spec.add_development_dependency 'rake', '~> 10.0'
3232
end

0 commit comments

Comments
 (0)