Xcode 16 RC , Reference files in place , Multiple commands produce... Error

Xcode 16 RC , when copying a folder with the option Reference files in place , causes build errors for various files. The error states : Multiple commands produce <some_file_path>.

The Xcode 16 Betas did not have the same issue.

If I choose the option Convert to Folder and then toggle the build rules in the File inspector , the errors cease and the build is successful. Even after reverting back to groups using Convert to Group , the build is still successful. However when I run , the folder contents are still not detected in either case.

Answered by diiiv9 in 803209022

When adding a reference folder , Reference files in place option works with Create Folders , then changing the Build Rules option the to Apply once for folder in the File Inspector settings for the folder I am adding.

Toggling the Build Rules removes the target in the Target Membership , re-add it.

The Xcode 16 Release Notes mention a toggling a “Build Folder Contents” option in documentation , however I can't find this .

Accepted Answer

When adding a reference folder , Reference files in place option works with Create Folders , then changing the Build Rules option the to Apply once for folder in the File Inspector settings for the folder I am adding.

Toggling the Build Rules removes the target in the Target Membership , re-add it.

The Xcode 16 Release Notes mention a toggling a “Build Folder Contents” option in documentation , however I can't find this .

Xcode 16 RC , Reference files in place , Multiple commands produce... Error
 
 
Q