From 699c731a4036137d298d7315d1fd1231875c8fd5 Mon Sep 17 00:00:00 2001 From: edmund Date: Fri, 31 Jul 2020 20:35:27 +0800 Subject: [PATCH] Fix: added compatibility header --- ios/Classes/InAppWebViewFlutterPlugin.m | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ios/Classes/InAppWebViewFlutterPlugin.m b/ios/Classes/InAppWebViewFlutterPlugin.m index f245b8a0..c16dedb4 100755 --- a/ios/Classes/InAppWebViewFlutterPlugin.m +++ b/ios/Classes/InAppWebViewFlutterPlugin.m @@ -16,7 +16,14 @@ */ #import "InAppWebViewFlutterPlugin.h" +#if __has_include() #import +#else +// Support project import fallback if the generated compatibility header +// is not copied when this plugin is created as a library. +// https://forums.swift.org/t/swift-static-libraries-dont-copy-generated-objective-c-header/19816 +#import "flutter_inappwebview-Swift.h" +#endif @implementation InAppWebViewFlutterPlugin : NSObject + (void)registerWithRegistrar:(NSObject*)registrar {