How can I add a folder to my app's bundle

In previous Xcode versions, it was possible to add a folder reference to a project, and in the copy resources build phase it would copy the folder the bundle, rather than the contents (i.e. the folder's contents would be nested inside a directory named after the folder).

In Xcode 16.4, when creating a folder reference, the copy resources build phase will copy the contents of the folder to the bundle at the root level (not nested), like the old behavior when creating a group rather than a folder reference. If you look at the raw project.pbxproj file, it shows up as a "File System Synchronized Root Group" rather than a "File Reference".

Is there a way to get the old behavior, aside from hand-editing the project.pbxproj file?

Figured it out thanks to some help from another engineer:

You now have to select "Apply Once to Folder" as the value for Build Rules in the file inspector.

How can I add a folder to my app's bundle
 
 
Q