File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -41,14 +41,25 @@ $ echo "$DEVELOPER_DIR"
41
41
42
42
## Auto-switching
43
43
44
- To automatically switch the current Xcode version when you ` cd ` between different directories, load ` auto ` in ` ~/.bashrc ` or ` .zshrc ` :
44
+ To automatically switch the current Xcode version when you ` cd ` between different directories, load ` auto ` in ` ~/.bashrc ` or ` ~/.zshrc ` .
45
+
46
+ ### Intel
45
47
46
48
``` sh
47
49
source /usr/local/share/chxcode/chxcode
48
50
source /usr/local/share/chxcode/auto
49
51
```
50
52
51
- Auto looks for an ` .xcode-version ` file and automatically selects that version for the current folder and any of it's subfolders.
53
+ ### Apple Silicon
54
+
55
+ ``` sh
56
+ source /opt/homebrew/opt/share/chxcode/chxcode
57
+ source /opt/homebrew/opt/share/chxcode/auto
58
+ ```
59
+
60
+ (If you're unsure then simply follow the instructions Homebrew showed you after installation. Run ` brew info chxcode ` to see the instructions again.)
61
+
62
+ ` auto ` looks for an ` .xcode-version ` file and automatically selects that version for the current folder and any of it's subfolders.
52
63
53
64
For example:
54
65
You can’t perform that action at this time.
0 commit comments