Skip to content

Commit 413ca25

Browse files
authored
Switching Xcode versions without password (#37)
1 parent 8b5f734 commit 413ca25

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,16 @@ Source: [Khoa, @onmyway133](https://twitter.com/onmyway133/status/13800842488292
402402
403403
Source: [Jesse Squires](https://www.jessesquires.com/blog/2020/07/07/quickly-switching-between-xcodes/)
404404

405+
### Switch Xcode versions without entering password
406+
407+
> When using `xcode-select` it can be problematic entering the password in situations like on remote CI. We can configure sudo using `sudoers` so that the password will no longer be required using this command:
408+
409+
```bash
410+
echo "%admin ALL=NOPASSWD: /usr/bin/xcode-select,/usr/bin/xcodebuild -runFirstLaunch" | sudo tee /etc/sudoers.d/xcode
411+
```
412+
413+
Source: [Keith Smiley](https://www.smileykeith.com/2021/08/12/xcode-select-sudoers/)
414+
405415
### Install, manage and switch between different Xcode versions
406416

407417
An easy-to-use command line tool to install and uninstall different Xcode versions on your machine. Xcode versions are installed side-by-side with the version in their name and makes downloading/installing them incredibly easy.

0 commit comments

Comments
 (0)