Export For Localization fails with 'Duplicate localized resource "folder/Localizable.strings" found'

I can add localizations to my project, and "Export For Localization…" without issue. I then translate the strings in the exported "en.xliff" file, and import them using "Import Localizations…".


After doing this, I am unable to "Export For Localization…" again. It fails with the message 'Duplicate localized resource "folder/Localizable.strings" found'.


I cannot find any duplicates of this file, and think the error message might be misleading. I do have a project with multiple targets for OS X and iOS.


If I remove the translations and delete the files, I can export without issue, once. Subsequent exports fails. How to troubleshoot this?

Use Xcode's Product menu, then, with the option key pressed, select 'Clean Build Folder'. Check build settings/compile resources to see if/when it's enabled there...do a count when works vs. when fails.



Confirm no errors in the navigator and go again.

Same issue with xCode 14 and multiple targets project (iOS app, WatcOS app, iOS widhget extension, WatchOS widget extension et WatchOS App). "Clean Build Folder" isn't the solution for me.

Export For Localization fails with 'Duplicate localized resource "folder/Localizable.strings" found'
 
 
Q