diff --git a/src/darwin/Framework/CHIP/MTRFrameworkDiagnostics.mm b/src/darwin/Framework/CHIP/MTRFrameworkDiagnostics.mm index 0cf93dc5b4daf4..3e72f0ce1123a7 100644 --- a/src/darwin/Framework/CHIP/MTRFrameworkDiagnostics.mm +++ b/src/darwin/Framework/CHIP/MTRFrameworkDiagnostics.mm @@ -18,6 +18,10 @@ #import "MTRLogging_Internal.h" +#ifndef GIT_COMMIT_SHA +#define GIT_COMMIT_SHA "unknown-sha" +#endif + void MTRFrameworkInitDiagnosticLog() { MTR_LOG("Matter Framework Init (git: %s)", GIT_COMMIT_SHA);