macos 10.13.4: nvcc fatal : The version ('90100') of the host compiler ('Apple clang') is not supported

Installation fails on
cuda-install-samples-9.1.sh ~

Copying samples to /Users/…/NVIDIA_CUDA-9.1_Samples now…
Finished copying samples.
$ cd ~/NVIDIA_CUDA-9.1_Samples/5_Simulations/nbody

make
xcode-select: error: tool ‘xcodebuild’ requires Xcode, but active developer directory ‘/Library/Developer/CommandLineTools’ is a command line tools instance
expr: syntax error
/Developer/NVIDIA/CUDA-9.1/bin/nvcc -ccbin g++ -I…/…/common/inc -m64 -Xcompiler -arch -Xcompiler x86_64 -ftz=true -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_70,code=compute_70 -o bodysystemcuda.o -c bodysystemcuda.cu
nvcc fatal : The version (‘90100’) of the host compiler (‘Apple clang’) is not supported
make: *** [bodysystemcuda.o] Error 1

clang --version
Apple LLVM version 9.1.0 (clang-902.0.39.1)
Target: x86_64-apple-darwin17.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

I got the same problem. Is there any solution?

Up,
I got the same problem.
Solution, Install Xcode 9.2…

Ubuntu 16.04, cuda 11.0, I got the error “nvcc fatal : The version (‘80000’) of the host compiler (‘clang’) is not supported” when clang’s version is 8.0. I got from internet that clang4.0 is supported by Ubuntu16.0, so I changed to clang4.0, However, I got the error “nvcc fatal : The version (‘80000’) of the host compiler (‘clang’) is not supported” when clang’s version is 4.0. There is so few solutions which can be found on internet. Wait for the solutions…