Search code examples
xcode4

Creating group in Xcode does not create folder in file system -- why?


In Xcode IDE when I add a new group named 'Organizer' inside the default Classes group it is getting created. But when I physically see the folder in the Finder, that new group Organizer is not showing as a folder.

Actually I want to maintain the sources in a particular structure i.e, how it exists in the XCode view.

What should I do to achieve this?


Solution

  • You should create all necessary folders within Finder and then add them to project (right mouse click -> Add files to XYZ project). While adding files, options should look like this:

    enter image description here

    UPD: Xcode 9 finally supports automatic folder creation and file reordering for groups operations!