After each update of Xcode, do not forget to open it and install the command line tool.
Then in terminal, do:
sudo xcodebuild -license
This command is not necessary if you open Xcode and install command line tools:
sudo xcode-select --install
For older version of Xcode:
Install the sdk headers for version 10.14 with:
open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
They are installed with 10.15 version. Check using:
cd /Library/Developer/CommandLineTools/SDKs
(base) marcgirondot@MacBook-Air-de-Marc SDKs % ls -al
total 0
drwxr-xr-x 5 root wheel 160 11 déc 2019 .
drwxr-xr-x 5 root wheel 160 15 nov 2019 ..
lrwxr-xr-x 1 root wheel 15 11 déc 2019 MacOSX.sdk -> MacOSX10.15.sdk
drwxr-xr-x 7 root wheel 224 11 déc 2019 MacOSX10.14.sdk
drwxr-xr-x 8 root wheel 256 11 déc 2019 MacOSX10.15.sdk
Commentaires
Enregistrer un commentaire