Scans all Xcode strings files for unused localized strings.
git clone <this repository>
cd StringsScan
swift run StringsScan strings-scan -p <project directory-path>
When StringsScan is integrated into an Xcode project, warnings and errors will appear in the Issue Navigator.
To do this select the project in the file navigator, then select the primary app target, and go to Build Phases. Click the + and select "New Run Script Phase". Insert the following as the script:
cd ${BUILD_DIR%Build/*}SourcePackages/checkouts/StringsScan
/usr/bin/xcrun --sdk macosx swift run -c release StringsScan strings-scan -p "${SRCROOT}/<project directory-path>"
Tip
It is still under development and performance is not good. Please note that build times will be slower.