Same issues!
This works for me.
Open a file by Terminal firstly, like this open file.swift -a Xcode
And open the project by Terminal as well.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: