Skip to content

Commit d848247

Browse files
committed
Install Xcode - WIP
1 parent c4f3a6b commit d848247

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

native-script.rb

+13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# coding: utf-8
22

3+
# Only the user can manually download and install Xcode from AppStore
4+
puts "Installing Xcode. Please click on 'Get Xcode' on the following dialog and install Xcode from AppStore."
5+
`xcode-select --install`
6+
7+
until `pkgutil --pkg-info=com.apple.pkg.Xcode`.include? "version" do
8+
puts "Waiting for Xcode do finish installing..."
9+
sleep(20)
10+
end
11+
12+
puts "You need to agree to Xcode license to be able to use the compilers... (You might need to provide your password.)"
13+
`sudo gcc`
14+
15+
# Install all other dependencies
316
puts "Installing Homebrew... (You might need to provide your password.)"
417
`ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"`
518

0 commit comments

Comments
 (0)