Usual commit
This commit is contained in:
29
2021/macOS issues and fixes and tricks.md
Normal file
29
2021/macOS issues and fixes and tricks.md
Normal file
@ -0,0 +1,29 @@
|
||||
# macOS issues and fixes and tricks
|
||||
|
||||
#macos
|
||||
|
||||
## git error: xcrun: error: invalid active developer path
|
||||
|
||||
```shell
|
||||
jerry@Jerrys-iMac syncthing-macos % git pull
|
||||
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
|
||||
jerry@Jerrys-iMac syncthing-macos % xcode-select --install
|
||||
xcode-select: note: install requested for command line developer tools
|
||||
```
|
||||
|
||||
## xcodebuild error
|
||||
|
||||
```shell
|
||||
jerry@Jerrys-iMac syncthing-macos % make
|
||||
xcodebuild -derivedDataPath /Users/jerry/src/github.com/syncthing/syncthing-macos -configuration Debug -scheme syncthing
|
||||
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
|
||||
```
|
||||
|
||||
```shell
|
||||
sudo xcodebuild -license
|
||||
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
|
||||
```
|
||||
|
||||
## misc
|
||||
|
||||
* Screenshot taking: <https://support.apple.com/en-us/HT201361>
|
||||
Reference in New Issue
Block a user