'FirebaseAuth Problem after Installing RevenueCat CocoaPod

I recently had put banner and interstitial ads on my application. After which, I decided to incorporate RevenueCat. Once the pod was installed, I had many errors that I could not fix. I decided to remove the CocoaPod. Once that was completed, I had been getting the following problems.

  1. AVFoundation.h – AVFCore/AVFcore.h file not found
  2. RPBroadCastExtension.h. – Could not build module AVFoundation
  3. GameKit.h. – Could not build module ReplayKit
  4. FIRGameCenterAuthProvider.m – Could not build module GameKit

I have been trying for 2-3 days to fix the problem. Here is what I have been doing.

  1. I tried removing all pods and reinstall all the pods.
  2. I try to clean the build. Same error came back.
  3. I tried to add and remove RevenueCat.
  4. I changed build setting to enable module c & Objective C. I added use_modular_headers! to Pod file.

my pod file

target 'FetalGrowthPercentile' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!
  use_modular_headers!

  # Pods for FetalGrowthPercentile
  pod 'Firebase/Firestore'
  pod 'Google-Mobile-Ads-SDK'
  pod 'Firebase/Auth'

 end

None of which helps. I am lost. Please advise!!

Louis



Sources

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

Source: Stack Overflow

Solution Source