Folder references at the root of the project
Hi:
I have been looking to add a folder as folder reference in the root of my project. I have seen this is possible with source files, but could not find the way to do the same for the root of the project. Like fileGroups, but use folder references instead of groups. Is there a way?
Thanks, Andres
This currently isn't possible. Could you share a use case for this? As the directory isn't part of a build phase it wouldn't really matter if it was a group or a folder reference right? Only that a folder reference would lead to a lighter project, and would generate more quickly
My main interest for this is that a folder reference updates its contents automatically when there are any changes in the disk. So, for example, say I have a scripts folder that I want added to the project:
- With groups, when adding a new script inside the folder, I have to regenerate the project to see it in the project.
- With folder references, when adding a new script inside the folder, it automatically appears in the project without regenerating.
@yonaskolb Any progress on this request? Just checking.
+1 to that.
Example use case: adding playground to the root of the project under a "Playgrounds" folder.
For us the use case is that we want to add things like CI scripts to the project so they are easily editable from within Xcode, but as they are not actually strongly tied to the project itself, it is awkward to have to regenerate the project if you change any of them from elsewhere.
If anything, it makes more sense for things that are not part of any project to be folder references. Since they are not part of the build, having to update the project to keep them up to date is a bit weird.