diff --git a/src/darwin/Framework/CHIP/MTRDevice.mm b/src/darwin/Framework/CHIP/MTRDevice.mm index bd94b1053b36b3..1ba4dd83258bb7 100644 --- a/src/darwin/Framework/CHIP/MTRDevice.mm +++ b/src/darwin/Framework/CHIP/MTRDevice.mm @@ -187,9 +187,12 @@ @interface MTRDevice () @end +// Declaring selector so compiler won't complain about testing and calling it in _handleReportEnd +#ifdef DEBUG @protocol MTRDeviceUnitTestDelegate - (void)unitTestReportEndForDevice:(MTRDevice *)device; @end +#endif @implementation MTRDevice