Two reoccurring problems while running FEniCS

in your first error in ft_03_heat.py you can see the cause
“missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun”
as you are using an old mac probably xcode is not installed. Just open a terminal and install it
by typing xcode-select --install
(after that restart your kernel if you are using jupyter )