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 {