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

Installation fails on ~

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

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
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?

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