I exhausted all my options and conducted a thorough search, but was unable to resolve the issue. I proceeded to restart my computer once, but the problem persisted. However, upon performing a complete shutdown and subsequently restarting it for a second time, Xcode immediately began expanding. Therefore, I would recommend attempting a proper restart of your computer at least twice as it may potentially assist in resolving the issue.