title: Xcode -FirebaseCore Lexical or preprocessor issue 'GoogleUtilities/GULAppEnvironmentUtil.h' file not found
body: <p>I'm using cocoapod version <code>/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.7.3/lib/cocoapods.rb</code>, <code>Swift 5</code>, and Xcode <code>10.2.1</code>. I cleaned the derived data.</p>
  
  <p>I just updated to Swift 5 (just got a cpu that could support MoJave) and when I try to build my project I keep getting the error</p>
  
  <pre><code>FirebaseCore Lexical or preprocessor issue 'GoogleUtilities/GULAppEnvironmentUtil.h' file not found
  </code></pre>
  
  <p><strong>Before I updated this never happened before in my old project.</strong></p>
  
  <p>It seems it's specifically coming from <code>Firebase/Core</code></p>
  
  <p><a href="https://i.stack.imgur.com/bKCOm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bKCOm.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/Snd15.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Snd15.png" alt="enter image description here"></a></p>
  
  <p>I did a <kbd>cmmd</kbd>+<kbd>4</kbd> for a search and other files use it but they aren't complaining</p>
  
  <p><a href="https://i.stack.imgur.com/s2ozb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/s2ozb.png" alt="enter image description here"></a></p>
  
  <p>I tried:</p>
  
  <pre><code>$ pod deintegrate
  $ pod clean
  $ rm Podfile
  $ pod init
  $ pod install
  $ pod repo remove master // also sudo rm -fr ~/.cocoapods/repos/master
  $ pod repo update
  $ pod setup
  $ pod install
  $ pod update
  </code></pre>
  
  <p>But the error won't go away. <strong>How can I fix this?</strong></p>
  
  <p>Here is my pod file:</p>
  
  <pre><code>target 'MyApp' do
    # Comment the next line if you don't want to use dynamic frameworks
    use_frameworks!
  
    # Pods for MyApp
  
  pod 'Stripe'
  
  pod 'DLRadioButton', '~&gt; 1.4'
  
  pod 'GeoFire', :git =&gt; 'https://github.com/firebase/geofire-objc.git'
  
  pod 'AFNetworking'
  
  pod 'Alamofire'
  
  pod 'SwiftyJSON'
  
  pod 'SDWebImage'
  
  pod 'Fabric'
  
  pod 'Crashlytics'
  
  pod 'KeychainSwift'
  
  pod 'IQKeyboardManagerSwift'
  
  pod 'HMSegmentedControl'
  
  pod 'NKVPhonePicker'
  
  pod 'FlagPhoneNumber'
  
  pod 'MetalPetal'
  
  pod "SwiftPhoneNumberFormatter"
  
  pod 'CountryPickerView'
  
  pod 'mailcore2-ios'
  
  pod 'Cosmos'
  
  pod 'GoogleInterchangeUtilities'
  pod 'GoogleNetworkingUtilities'
  pod 'GoogleParsingUtilities'
  pod 'GoogleSymbolUtilities'
  pod 'GoogleUtilities'
  
  #pod 'Firebase'
  pod 'Firebase/Core'
  pod 'Firebase/Storage'
  pod 'FirebaseInstanceID'
  pod 'Firebase/Auth'
  pod 'Firebase/Database'
  pod 'Firebase/DynamicLinks'
  pod 'Firebase/Crash'
  pod 'Firebase/Messaging'
  
  pod 'GooglePlacesAPI'
  pod ‘GoogleMaps’
  pod 'GooglePlaces'
  pod 'GooglePlacePicker'
  
  pod 'GoogleSignIn'
  pod 'GoogleAnalytics'
  
  pod 'ReachabilitySwift'
  
  post_install do |installer|
      installer.pods_project.targets.each do |target|
          target.build_configurations.each do |config|
              config.build_settings['SWIFT_VERSION'] = ‘5.0’
          end
      end
  end
  
  end
  </code></pre>
  
  <p>Podfile.Lock</p>
  
  <pre><code>PODS:
    - AFNetworking (3.2.1):
      - AFNetworking/NSURLSession (= 3.2.1)
      - AFNetworking/Reachability (= 3.2.1)
      - AFNetworking/Security (= 3.2.1)
      - AFNetworking/Serialization (= 3.2.1)
      - AFNetworking/UIKit (= 3.2.1)
    - AFNetworking/NSURLSession (3.2.1):
      - AFNetworking/Reachability
      - AFNetworking/Security
      - AFNetworking/Serialization
    - AFNetworking/Reachability (3.2.1)
    - AFNetworking/Security (3.2.1)
    - AFNetworking/Serialization (3.2.1)
    - AFNetworking/UIKit (3.2.1):
      - AFNetworking/NSURLSession
    - Alamofire (4.8.2)
    - Cosmos (19.0.3)
    - CountryPickerView (3.0.1)
    - Crashlytics (3.13.2):
      - Fabric (~&gt; 1.10.2)
    - DLRadioButton (1.4.12)
    - Fabric (1.10.2)
  - Firebase/Analytics (3.6.0):
      - FirebaseAnalytics (= 3.4.2)
    - Firebase/Auth (6.3.0):
      - Firebase/CoreOnly
      - FirebaseAuth (~&gt; 6.1.2)
    - Firebase/Core (3.6.0):
      - Firebase/Analytics
    - Firebase/CoreOnly (6.3.0):
      - FirebaseCore (= 6.0.3)
    - Firebase/Crash (3.6.0):
      - Firebase/Analytics
      - FirebaseCrash (= 1.0.7)
    - Firebase/Database (6.3.0):
      - Firebase/CoreOnly
      - FirebaseDatabase (~&gt; 6.0.0)
    - Firebase/DynamicLinks (6.3.0):
      - Firebase/CoreOnly
      - FirebaseDynamicLinks (~&gt; 4.0.0)
    - Firebase/Messaging (3.6.0):
      - Firebase/Analytics
      - FirebaseMessaging (= 1.2.0)
    - Firebase/Storage (6.3.0):
      - Firebase/CoreOnly
      - FirebaseStorage (~&gt; 3.2.1)
    - FirebaseAnalytics (3.4.2):
      - FirebaseInstanceID (~&gt; 1.0)
      - GoogleInterchangeUtilities (~&gt; 1.2)
      - GoogleSymbolUtilities (~&gt; 1.1)
      - GoogleUtilities (~&gt; 1.2)
    - FirebaseAnalyticsInterop (1.2.0)
    - FirebaseAuth (6.1.2):
      - FirebaseAuthInterop (~&gt; 1.0)
      - FirebaseCore (~&gt; 6.0)
      - GoogleUtilities/AppDelegateSwizzler (~&gt; 6.2)
      - GoogleUtilities/Environment (~&gt; 6.2)
      - GTMSessionFetcher/Core (~&gt; 1.1)
    - FirebaseAuthInterop (1.0.0)
    - FirebaseCore (6.0.3):
      - GoogleUtilities/Environment (~&gt; 6.0)
      - GoogleUtilities/Logger (~&gt; 6.0)
    - FirebaseCrash (1.0.7):
      - FirebaseAnalytics (~&gt; 3.2)
      - FirebaseInstanceID (~&gt; 1.0)
      - GoogleInterchangeUtilities (~&gt; 1.2)
      - GoogleSymbolUtilities (~&gt; 1.1)
      - GoogleUtilities (~&gt; 1.2)
  - FirebaseAnalyticsInterop (1.2.0)
    - FirebaseAuth (6.1.2):
      - FirebaseAuthInterop (~&gt; 1.0)
      - FirebaseCore (~&gt; 6.0)
      - GoogleUtilities/AppDelegateSwizzler (~&gt; 6.2)
      - GoogleUtilities/Environment (~&gt; 6.2)
      - GTMSessionFetcher/Core (~&gt; 1.1)
    - FirebaseAuthInterop (1.0.0)
    - FirebaseCore (6.0.3):
      - GoogleUtilities/Environment (~&gt; 6.0)
      - GoogleUtilities/Logger (~&gt; 6.0)
    - FirebaseCrash (1.0.7):
      - FirebaseAnalytics (~&gt; 3.2)
      - FirebaseInstanceID (~&gt; 1.0)
      - GoogleInterchangeUtilities (~&gt; 1.2)
      - GoogleSymbolUtilities (~&gt; 1.1)
      - GoogleUtilities (~&gt; 1.2)
    - FirebaseDatabase (6.0.0):
      - FirebaseAuthInterop (~&gt; 1.0)
      - FirebaseCore (~&gt; 6.0)
      - leveldb-library (~&gt; 1.18)
    - FirebaseDynamicLinks (4.0.0):
      - FirebaseAnalyticsInterop (~&gt; 1.0)
      - FirebaseCore (~&gt; 6.0)
    - FirebaseInstanceID (1.0.9)
    - FirebaseMessaging (1.2.0):
      - FirebaseAnalytics (~&gt; 3.3)
      - FirebaseInstanceID (~&gt; 1.0)
      - GoogleInterchangeUtilities (~&gt; 1.2)
      - GoogleIPhoneUtilities (~&gt; 1.2)
      - GoogleSymbolUtilities (~&gt; 1.1)
    - FirebaseStorage (3.2.1):
      - FirebaseAuthInterop (~&gt; 1.0)
      - FirebaseCore (~&gt; 6.0)
      - GTMSessionFetcher/Core (~&gt; 1.1)
    - FlagPhoneNumber (0.7.6):
      - FlagPhoneNumber/libPhoneNumberiOS (= 0.7.6)
    - FlagPhoneNumber/libPhoneNumberiOS (0.7.6)
    - GeoFire (3.0.0):
      - Firebase/Database (~&gt; 6.0)
    - GoogleAnalytics (3.17.0)
    - GoogleInterchangeUtilities (1.2.2):
      - GoogleSymbolUtilities (~&gt; 1.1)
    - GoogleIPhoneUtilities (1.2.1):
      - GoogleSymbolUtilities (~&gt; 1.0)
      - GoogleUtilities (~&gt; 1.0)
  - GoogleMaps (3.1.0):
      - GoogleMaps/Maps (= 3.1.0)
    - GoogleMaps/Base (3.1.0)
    - GoogleMaps/Maps (3.1.0):
      - GoogleMaps/Base
    - GoogleNetworkingUtilities (1.2.2):
      - GoogleSymbolUtilities (~&gt; 1.1)
    - GoogleParsingUtilities (1.1.2):
      - GoogleNetworkingUtilities (~&gt; 1.2)
      - GoogleSymbolUtilities (~&gt; 1.1)
    - GooglePlacePicker (3.1.0):
      - GoogleMaps (= 3.1.0)
      - GooglePlaces (= 3.1.0)
    - GooglePlaces (3.1.0):
      - GoogleMaps/Base (= 3.1.0)
    - GooglePlacesAPI (1.1.4):
      - Alamofire (~&gt; 4)
      - ObjectMapper (~&gt; 3)
    - GoogleSignIn (4.4.0):
      - "GoogleToolboxForMac/NSDictionary+URLArguments (~&gt; 2.1)"
      - "GoogleToolboxForMac/NSString+URLArguments (~&gt; 2.1)"
      - GTMSessionFetcher/Core (~&gt; 1.1)
    - GoogleSymbolUtilities (1.1.2)
    - GoogleToolboxForMac/DebugUtils (2.2.1):
      - GoogleToolboxForMac/Defines (= 2.2.1)
    - GoogleToolboxForMac/Defines (2.2.1)
    - "GoogleToolboxForMac/NSDictionary+URLArguments (2.2.1)":
      - GoogleToolboxForMac/DebugUtils (= 2.2.1)
      - GoogleToolboxForMac/Defines (= 2.2.1)
      - "GoogleToolboxForMac/NSString+URLArguments (= 2.2.1)"
    - "GoogleToolboxForMac/NSString+URLArguments (2.2.1)"
    - GoogleUtilities (1.3.2):
      - GoogleSymbolUtilities (~&gt; 1.1)
    - GoogleUtilities/AppDelegateSwizzler (6.2.1):
      - GoogleUtilities/Environment
      - GoogleUtilities/Logger
      - GoogleUtilities/Network
    - GoogleUtilities/Environment (6.2.1)
    - GoogleUtilities/Logger (6.2.1):
      - GoogleUtilities/Environment
    - GoogleUtilities/Network (6.2.1):
      - GoogleUtilities/Logger
      - "GoogleUtilities/NSData+zlib"
      - GoogleUtilities/Reachability
    - "GoogleUtilities/NSData+zlib (6.2.1)"
  - GoogleUtilities/Reachability (6.2.1):
      - GoogleUtilities/Logger
    - GTMSessionFetcher/Core (1.2.2)
    - HMSegmentedControl (1.5.5)
    - IQKeyboardManagerSwift (6.4.0)
    - KeychainSwift (16.0.1)
    - leveldb-library (1.20)
    - mailcore2-ios (0.6.4)
    - MetalPetal (1.4.4):
      - MetalPetal/Core (= 1.4.4)
    - MetalPetal/Core (1.4.4)
    - NKVPhonePicker (2.1.0)
    - ObjectMapper (3.5.1)
    - ReachabilitySwift (4.3.1)
    - SDWebImage (5.0.6):
      - SDWebImage/Core (= 5.0.6)
    - SDWebImage/Core (5.0.6)
    - Stripe (15.0.1)
    - SwiftPhoneNumberFormatter (1.5)
    - SwiftyJSON (5.0.0)
  
  DEPENDENCIES:
    - AFNetworking
    - Alamofire
    - Cosmos
    - CountryPickerView
    - Crashlytics
    - DLRadioButton (~&gt; 1.4)
    - Fabric
    - Firebase/Auth
    - Firebase/Core
    - Firebase/Crash
    - Firebase/Database
    - Firebase/DynamicLinks
    - Firebase/Messaging
    - Firebase/Storage
    - FirebaseInstanceID
    - FlagPhoneNumber
    - GeoFire (from `https://github.com/firebase/geofire-objc.git`)
    - GoogleAnalytics
    - GoogleInterchangeUtilities
    - GoogleMaps
    - GoogleNetworkingUtilities
    - GoogleParsingUtilities
    - GooglePlacePicker
    - GooglePlaces
    - GooglePlacesAPI
    - GoogleSignIn
    - GoogleSymbolUtilities
    - GoogleUtilities
    - HMSegmentedControl
    - IQKeyboardManagerSwift
    - KeychainSwift
    - mailcore2-ios
    - MetalPetal
    - NKVPhonePicker
    - ReachabilitySwift
    - SDWebImage
    - Stripe
    - SwiftPhoneNumberFormatter
    - SwiftyJSON
  
  SPEC REPOS:
    https://github.com/cocoapods/specs.git:
      - AFNetworking
      - Alamofire
      - Cosmos
      - CountryPickerView
      - Crashlytics
      - DLRadioButton
      - Fabric
      - Firebase
      - FirebaseAnalytics
      - FirebaseAnalyticsInterop
      - FirebaseAuth
      - FirebaseAuthInterop
      - FirebaseCore
      - FirebaseCrash
      - FirebaseDatabase
      - FirebaseDynamicLinks
      - FirebaseInstanceID
      - FirebaseMessaging
      - FirebaseStorage
      - FlagPhoneNumber
      - GoogleAnalytics
      - GoogleInterchangeUtilities
      - GoogleIPhoneUtilities
      - GoogleMaps
      - GoogleNetworkingUtilities
      - GoogleParsingUtilities
      - GooglePlacePicker
      - GooglePlaces
      - GooglePlacesAPI
      - GoogleSignIn
      - GoogleSymbolUtilities
      - GoogleToolboxForMac
      - GoogleUtilities
      - GTMSessionFetcher
      - HMSegmentedControl
      - IQKeyboardManagerSwift
      - KeychainSwift
      - leveldb-library
      - mailcore2-ios
      - MetalPetal
      - NKVPhonePicker
      - ObjectMapper
      - ReachabilitySwift
  - SDWebImage
      - Stripe
      - SwiftPhoneNumberFormatter
      - SwiftyJSON
  
  EXTERNAL SOURCES:
    GeoFire:
      :git: https://github.com/firebase/geofire-objc.git
  </code></pre>