Skip to content

pocosoft/StringsScan

Repository files navigation

StringsScan

workflow codecov

Scans all Xcode strings files for unused localized strings.

Getting started

git clone <this repository>
cd StringsScan
swift run StringsScan strings-scan -p <project directory-path>

Sample results

スクリーンショット 2022-08-15 9 38 47

Xcode

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>"

スクリーンショット 2022-08-15 9 36 42

スクリーンショット 2022-08-15 9 37 30

Tip

It is still under development and performance is not good. Please note that build times will be slower.

About

Unused localized strings find from all strings file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages