It was solved by executing the following.
sudo chmod 1777 /Volumes/Macintosh\ HD/private/tmp
linkText - https://stackoverflow.com/questions/40238266/launchd-sim-crashing-could-not-create-temporary-state-directory
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: