Xcode 15.3 AppIntentsSSUTraining warning: missing the definition of locale # variables.1.definitions

Hello!

I've noticed that adding localizations for AppShortcuts triggers the following warnings in Xcode 15.3:

warning: missing the definition of zh-Hans # variables.1.definitions
warning: missing the definition of zh-Hans # variables.2.definitions

This occurs with both legacy strings files and String Catalogs.

Example project: https://github.com/gongzhang/AppShortcutsLocalizationWarningExample

FB13682631

请不要清理你的build缓存。 当你清理了xcode的Clean Build Folder之后,此错误提示就会出现。 当你出现了这个错误,你可以清理你的Clean Build Folder,然后删除你的AppShortcutsProvider 重新运行 然后再恢复你刚刚删除的AppShortcutsProvider 重新运行

现在你只要不执行Clean Build Folder,就不会再出现这个错误。 当然这只是一个临时的解决方案。

I've tried to debug this but sadly with no luck. Filed the feedback under FB13756693. Maybe @eskimo could let us know whether this is intended behaviour and how to fix it or a bug

We also encountered this error. After clearing the cache and checking all the translation files, the error was resolved.

I'm seeing it in XCode 16 beta as well.

Reproducible in Xcode 16 beta. It seems that AppIntentsSSUTraining emits warnings for locales that don't support flexible matching. The thing is broken. So I disabled flexible matching in the build settings, and the warnings are gone.

Thanks @Gong ! Issue resolved after I disabled flexible matching.

Xcode 15.3 AppIntentsSSUTraining warning: missing the definition of locale # variables.1.definitions
 
 
Q