Xcode 16.x project doesn’t build with (SiriKit / Widget) intent definition file + translations

If you add a (SiriKit / Widget) intent definition file to an Xcode project and then translate it into another language, the build of the iOS app only works until you close the project. As soon as you open the project again, you get the error message with the next build:

Unexpected duplicate tasks

A workaround for this bug is, that you convert the folder (where the intent file is located) in Xcode to a group. After that every thing works without problems.

Steps to reproduce:

  • Create a new iOS project
  • Add a localization to the project (German for example)
  • Add a SiriKit Intent Definition File
  • Localize the SiriKit Intent Definition File
  • Build the project (should work without errors)
  • Close the project
  • Open the project again
  • Build the project again

Expected result:

  • The project builds without problems

Current result:

  • The project doesn’t build and returns the error: Unexpected duplicate tasks

Is this a known problem? Is there a way to solve this without switching to Xcode groups (instead of folders)

Our engineering teams need to investigate this issue, as resolution may involve changes to Apple's software. I'd greatly appreciate it if you could open a bug report and post the FB number here once you do. Bug Reporting: How and Why? has tips on creating your bug report.

I have already created a bug report FB ID: FB16081872

Xcode 16.x project doesn’t build with (SiriKit / Widget) intent definition file + translations
 
 
Q