diff --git a/README.md b/README.md index 1edf4e1c..794047f0 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,13 @@ A kernel image named `vmlinux.container` can be found in the `/opt/kata/share/ka ## Prepare to build package +Install the recommended version of Xcode. + +Set the active developer directory to the installed Xcode (replace ``): +```bash +sudo xcode-select -s +``` + Install [Swiftly](https://github.com/swiftlang/swiftly), [Swift](https://www.swift.org), and [Static Linux SDK](https://www.swift.org/documentation/articles/static-linux-getting-started.html): ```bash diff --git a/vminitd/Makefile b/vminitd/Makefile index 43b816a8..2e7c48ca 100644 --- a/vminitd/Makefile +++ b/vminitd/Makefile @@ -69,14 +69,15 @@ linux-sdk: .PHONY: macos-sdk macos-sdk: + # Consider switching back to `xcode-cltools`, when possible. @if [ $(MACOS_MAJOR) -gt 15 ] && [ "$(MACOS_RELEASE_TYPE)" = "" ]; then \ - "$(MAKE)" xcode-cli; \ + "$(MAKE)" xcode; \ else \ "$(MAKE)" xcode; \ fi -.PHONY: xcode-cli -xcode-cli: +.PHONY: xcode-cltools +xcode-cltools: @echo Activating Xcode Command Line Tools... @sudo xcode-select --switch /Library/Developer/CommandLineTools