Swift compiler hangs and I'm looking for a way to find the cause

Check out my reply here. It will very likely help you.