In order to localize string interpolation inside SwiftUI Text Views, String(localized:)
and AttributedString(localized:)
, the project or framework's build settings needs to have Use Compiler to Extract Swift Strings
enabled (e.g. SWIFT_EMIT_LOC_STRINGS=YES
).
However, while testing exports it appears that exporting localizations (Product > Export Localizations
) are always done using a RELEASE
build rather than a DEBUG
build.
For us, this is problematic as release builds use certificates that are only used by the build system. Software or internationalization engineers trying to export localizations with Use Compiler to Extract Swift Strings
enabled, will run into issues as the swift compiler step will fail.
Is there a way to make localization exports use a DEBUG
build rather than a RELEASE
build? Or alternatively ignore signing for localization exports?