''FBSDKCoreKit/FBSDKSettings.h' file not found

I have react-native-fbsdk-next enabled in my IOS project. Now i want to add react-native-fbads in my project. I have installed it with yarn and ran pod install. But when i run the project from xcode, it throws this error 'FBSDKCoreKit/FBSDKSettings.h' file not found. I don't know what to do here. I tried clearing the cache, restarting everything. But nothing works. I also have the following in my Podfile:

use_frameworks!

  pod 'FBSDKCoreKit'
  pod 'FBSDKLoginKit'
  pod 'FBSDKShareKit'
  pod 'FBAudienceNetwork'


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source