Updated Downloading and installing xcode headless scriptless (markdown)

_Qubarf 2022-09-17 11:27:09 +08:00
parent 51b127c6e6
commit 937384ca42

@ -15,14 +15,17 @@ I was using the pre-setup Catalina docker, so I chose [this version](https://dev
4. Then simply a matter of configuration:
`xip --expand [xcode.xip]`
`xip --expand [xcode.xip]`
`sudo cp Xcode.app /Applications`
`sudo cp Xcode.app /Applications`
`sudo rm /Library/DeveloperCommandLineTools && xcode-select -r`
`sudo rm /Library/DeveloperCommandLineTools && xcode-select -r`
`sudo xcodebuild -license accept`
`sudo xcodebuild -license accept`
`sudo xcodebuild -runFirstLaunch` (took ~10 minutes for me)
`sudo xcodebuild -runFirstLaunch` (took ~10 minutes for me)
`DevToolsSecurity -enable`
`DevToolsSecurity -enable`
5. Remote development can be achieved through VSCode through ssh
1. E.g., for swift make sure to change the sourcekit-lsp path to be the output of `xcrun --find sourcekit-lsp`