giulianoaiello wrote:
Is it mandatory to have a workspace?
I think that question was part of the problem. We didn't you that you didn't know what a workspace was.
A workspace is a specific kind of "umbrella" project file. You can define a workspace file that links multiple project files together to form a functional whole.
And to make it even more complicated, the answer to "is it mandatory to have a workspace?" is complicated. I just don't know. 3 years ago, I would have said "yes", in some cases. Now, I'm not so sure. I have very complicated Xcode projects right now and I'm not using workspace files. Maybe this is an improvement in recent versions of Xcode? I don't know.
But Xcode definitely needs to have some kind of project file that defines the files included in your, ahem, workspace. I build my websites in Xcode, but that's pretty unusual. For most people, Xcode is strictly a tool for building iPhone apps. I can't fault them for that. There are lots of people who make things much more difficult for themselves by not using Xcode for this. But Xcode definitely can be used as a general-purpose IDE. You will need a project file. You might also have to learn some rather obscure and poorly-supported features like makefile-based projects. But with some effort, you can use Xcode for practically anything developer-related.