Build Errors for iPhone Simulator: Missing Headers and Precompiled Header Issue

Hi everyone,

I'm encountering compile errors when building my iOS project for the iPhone 15 Pro (17.0.1) simulator. The errors are:

'GoogleSignIn/GoogleSignIn.h' file not found: This error occurs in my AppDelegate.h file.

'FirebaseCore/FirebaseCore.h' file not found: This error occurs in the Firebase.h file within my Pods directory. Failed to emit precompiled header: This error relates to my bridging header.

Importantly, these errors do not occur when building for a physical device.

Here's some additional information:

Xcode Version: 15.1

Simulator Details: Any iPhone simulators

I'd appreciate any insights or suggestions to resolve these errors. Thank you!

Additional Information: I am using the MacBook Air M2 with the latest MacOS Sonoma.

The project pod file contains this

platform :ios, '13.0'

use_frameworks!

target 'GMAEntertainment' do
  pod 'AlamofireImage'
  pod 'Alamofire'
  pod 'AFNetworking', '~> 4.0.1'
  pod 'InMobiSDK'
  pod 'TwitterKit'
  pod 'GoogleSignIn', '~> 6.2.2'
  pod 'Firebase'
  pod 'Firebase/Auth'
  pod 'Firebase/Core'
  pod 'Firebase/Messaging'
  pod 'Firebase/Analytics'
  pod 'Firebase/Crashlytics'
  pod 'Protobuf', '~> 3.21.5'
  pod 'Google-Mobile-Ads-SDK', '7.67.0'
  pod 'MaterialComponents/Snackbar'
  pod 'FBSDKCoreKit', '~> 16.1.3'
  pod 'FBSDKLoginKit', '~> 16.1.3'
  pod 'FBSDKShareKit', '~> 16.1.3'
  pod 'DailymotionPlayerSDK'
  pod 'ReCaptcha/RxSwift'
  pod 'MBProgressHUD'
  pod 'GoogleAnalytics'
  pod 'MaterialComponents/Ripple'
  pod 'SkeletonView', '~> 1.29.0'
  
  post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0' 
    end
  end
end

frameworks
  use_frameworks!

  target 'GMAEntertainmentTests' do
    inherit! :search_paths
    # Pods for testing
  end

end

Looking forward to your help!

Regards,

Build Errors for iPhone Simulator: Missing Headers and Precompiled Header Issue
 
 
Q