Geant4 compiles and runs on MacOS X 10.13. The following is how I did it.
Install gcc and cernlib following the instructions given in the GFORTRAN page and the CERNLIB page, if you haven't. In addition geant4 depends on CLHEP. Install it as
$ su
$ sudo apt-get update
$ sudo apt-get install clhep
If you just want to use precompiled binary packages, go directly to Installation subsection.
[1] Compilation Conditions
MacOS X Release 10.13[2] Compilation Procedure
standard Mach Kernel (Darwin 17.5.0)
gcc-7.3.0-1osx10.13
XQuartz's X11 (v.2.7.11) for MacOS X
CERNLIB-2006
clhep-2.4.0.4-10.13hepx1a
First download all of the necessary source files from the GEANT4 site and my private patches: macosx10.11.patch, into a directory, <somewhere>.
$ ls <somewhere>
geant4.10.02-macosx10.11.patch
Then expand the source tarballs as follows in whatever directory you want
to install GEANT4.
$ tar -zxvf <somewhere>/geant4.10.04.p01.tar.gz
$ cd geant4.10.04.p01
$ patch -p1 -s < <somewhere>/geant4.10.02-macosx10.11.patch
$ mkdir build
$ cd build
$ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/opt/g4/10.04.p01 -DCLHEP_ROOT_DIR=/opt/clhep/2.4.0.4 -DGEANT4_USE_OPENGL_X11=ON -DOPENGL_INCLUDE_DIR=/opt/X11/include -DGEANT4_INSTALL_DATA=ON -DXERCESC_ROOT_DIR=/opt/osxws -DGEANT4_USE_GDML=ON ..
$ make
$ make install
[3] Test Run
Try exapmles in the "examples" directory.
$ sudo apt-get update
$ sudo apt-get install geant4
$ sudo apt-get clean
$ sudo ln -s geant4.10.04.p01 /opt/g4/pro
By default GEANT4 will be installed under /opt/g4. Use
/opt/g4/pro/bin/geant4.sh to setup environmental variables necessary to run
GEANT4. /opt/g4/pro/bin/geant4-config will also come in handy