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)