Question: how to generate xcworkspace file?
Answer: Launch Xcode tool, click File —> New —> Workspace menu item at Xcode top menu bar to open a popup dialog window. Input a workspace name and select a saved directory in the popup dialog window, then click Save button. After that it will create a workspace file with file extension . xcworkspace like below.