From 5ccfabfc08aeff14ff14c88bf5b5eec14152d5a3 Mon Sep 17 00:00:00 2001 From: Yifei Teng Date: Tue, 17 Jul 2018 17:21:38 -0700 Subject: [PATCH] Add support for static lib via cocoapods macOS side --- Sources/OSX/NSStoryboard+Swizzling.m | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Sources/OSX/NSStoryboard+Swizzling.m b/Sources/OSX/NSStoryboard+Swizzling.m index ce8528f..46b0cf9 100644 --- a/Sources/OSX/NSStoryboard+Swizzling.m +++ b/Sources/OSX/NSStoryboard+Swizzling.m @@ -8,7 +8,13 @@ #import "NSStoryboard+Swizzling.h" #import -#import + +#if __has_include() + #import +#elif __has_include("SwinjectStoryboard-Swift.h") + #import "SwinjectStoryboard-Swift.h" +#endif + #import @implementation NSStoryboard (Swizzling)