justcallme
justcallme

Reputation: 13

How to create a new workspace file in Xcode?

I was moving around my Xcode folder project and I have accidentally deleted the .xcworkspace file (the white one). Is it possible to generate a new one?

Upvotes: 1

Views: 2710

Answers (1)

Drew
Drew

Reputation: 113

Like others have suggested, source control would be a great idea if you're not using it already, to protect you in this precise scenario. Github is a great place to start for that.

To create a new Xcode workspace

In the Xcode menu, click File > New > Workspace, then follow the prompts.

enter image description here

Once that's done, you'll have an empty Workspace, and you can drag whichever .xcodeproj files in that you wish to the sidebar to add them to the workspace.

enter image description here

Upvotes: 2

Related Questions