Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions docs/setup_macos.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,26 @@ Now would be a great time to take a look at our [CLI Tutorial](cli.html).
Opens a file or directory with the default application, like a double click. See the [`open` command](cli.html#open--wslview) in the CLI tutorial.


## Troubleshooting
This section is for common problems and solutions.

### Reinstall Compiler
You may notice that your compiler stops working or that the C++ standard library is unavailable (i.e. `#include` stops working) after installing other software development tools or after a macOS update. Reinstall your command line tools and compiler to fix this issue.

First, remove the previous command line tools. Be careful to enter this command correctly. You will be prompted to enter your password.

```console
$ sudo rm -rf /Library/Developer/CommandLineTools
```

Next, reinstall the command line tools. A separate window will pop up asking you to confirm. It may take several minutes to install.

```console
$ xcode-select --install
```

If you are working in an IDE like VS Code, you'll need to close and restart it as well.

## Acknowledgments
Original document written by Andrew DeOrio awdeorio@umich.edu.

Expand Down
5 changes: 4 additions & 1 deletion docs/setup_vscode_macos.md
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,10 @@ Press "Continue" to run the program to the next breakpoint, or the end, whicheve
## Troubleshooting
This section is for common problems and solutions.

### Reset
### Reinstall Compiler
If your compiler or `#include`s aren't working, try [reinstalling your compiler](setup_macos.html#reinstall-compiler) to fix this issue.

### Reset VS Code Project Settings
To reset VS Code project settings and starter files, first quit VS Code. Make a backup copy of your files, and then delete your project directory. Your project directory might be different.

```console
Expand Down
Loading