Use of "@import" when C++ modules are disabled @import FBSDKShareKit error

Hello everyone,

We have project in Unity 2020.3.33 and native plugin for sharing via FB Messenger that uses FBSDKSharingDelegate. After upgrading Facebook SDK from version 11 to 14.1.0 we started to get error:
No type or protocol named ‘FBSDKSharingDelegate’

To fix this we replaced
#import <FBSDKShareKit/FBSDKShareKit.h>
with
** @ FBSDKShareKit;**
as was mentioned in release notes for FB SDK.

But then we got another error:
/Libraries/Plugins/FBMessengerShare/iOS/FBMessengerSharePlugin.h:3:1: Use of ’ @ ’ when C++ modules are disabled, consider using -fmodules and -fcxx-modules

Adding this flags to different tagets of the project in Xcode doesn’t help. C and Objective-C modules are enabled.

Please, help

up