Under OS X v.10.11.6 using XCode 8.0 (immediately after the installation of XCode) I tried to run various example programs from Qt. The next error message appears:
error: 'wchar.h' file not found
I read macOS 'wchar.h' File Not Found but it seems the answer does not solve my problem (so far).