From f1baf3c1d8da11c3c5f7c9c9a9c353627c91c9dd Mon Sep 17 00:00:00 2001 From: Shuo Yang Date: Mon, 12 Oct 2020 09:33:27 -0700 Subject: [PATCH] WPM | Fix for missing SonarKit symbols (SKNamed, SKComponentLayoutDescriptor) Summary: This should fix build failures with prod config. The symbols should only be in internal builds and not the prod ones. ``` stderr: Undefined symbols for architecture arm64: "_OBJC_CLASS_$_SKNamed", referenced from: ... "_OBJC_CLASS_$_SKComponentLayoutDescriptor", referenced from: ... ``` Reviewed By: rzito Differential Revision: D24250749 fbshipit-source-id: 68c3d066a76baf4b1646f27dac0fd081bcaff41b --- .../descriptors/SKViewControllerDescriptor.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/descriptors/SKViewControllerDescriptor.h b/iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/descriptors/SKViewControllerDescriptor.h index 2f8fd4f18..f431e2686 100644 --- a/iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/descriptors/SKViewControllerDescriptor.h +++ b/iOS/Plugins/FlipperKitLayoutPlugin/FlipperKitLayoutPlugin/descriptors/SKViewControllerDescriptor.h @@ -5,6 +5,8 @@ * LICENSE file in the root directory of this source tree. */ +#if FB_SONARKIT_ENABLED + #import #import "SKNodeDescriptor.h" @@ -12,3 +14,5 @@ @interface SKViewControllerDescriptor : SKNodeDescriptor @end + +#endif