I've resolved this myself but just in case anyone else comes across this issue here was the problem.
I had tried to open a Json file a few days ago and it had tried to open in Xcode. The file was only a few MB but Xcode could not handle it.
Now every time I tried to reopen Xcode it was trying to open this file and would just hang.. not fail or given any error.. it would just hang and force quitting would show this in the stack trace.
so reinstalling and removing all traces of xcode doesn't seem to stop the OS from trying to reopen this Json file when I loaded Xcode again.
Shift+Option click on Xcode opens it without trying to reload previous files..
simple when you know how but really.. error handling is appalling..
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: