Add docs for multiple xcode versions installed (#9603)

* Add docs for multiple xcode versions installed

* Fix typos in doc file: multiple-xcode-versions.md

* Fix doc style: multiple-xcode-versions.md
This commit is contained in:
Arseniy Rozov
2017-11-08 21:32:26 +07:00
committed by Isaac A. Murchie
parent 3d7dd1e857
commit cfee87a5ba

View File

@@ -0,0 +1,31 @@
## Running Appium with multiple Xcode versions installed
If you have multiple Xcode installations you may choose which toolset Appium
should use with one of two ways:
### xcode-select tool
Only available with sudo privileges, affects the whole system.
Assuming you want to choose `/Applications/Xcode7.app`:
1. Set default Xcode.
```
sudo xcode-select -s /Applications/Xcode7.app/Contents/Developer
```
2. Run Appium (from command line or with GUI).
```
appium
```
### Environment variable
No privileges needed, affects only the current shell, so Appium should be started
within that shell.
Assuming you want to choose `/Applications/Xcode9.app`:
1. Set `DEVELOPER_DIR` environment variable.
```
export DEVELOPER_DIR=/Applications/Xcode9.app/Contents/Developer
```
2. Run Appium *from the same shell.*
```
appium
```