Hi,
Azure build-pipeline is failing after the recent update of 'GoogleUtilities' version to 6.7.0.
Below is the error message that we got:
Users/runner/work/1/s/platforms/ios/Pods/GoogleUtilities/GoogleUtilities/AppDelegateSwizzler/Private/GULAppDelegateSwizzler.h:19:9: note: did not find header 'AppDelegateSwizzler/Private/GULApplication.h' in framework
'GoogleUtilities' (loaded from '/Users/runner/work/1/s/platforms/ios/build/emulator')
I have same issue
[REQUIRED] Step 1: Describe your environment
Xcode version: Version 11.5 (11E608c)
Firebase SDK version: 6.27.0.
Installing Firebase (6.27.0)
Installing FirebaseABTesting (3.3.0)
Installing FirebaseAnalytics (6.6.1)
Installing FirebaseAuth (6.6.0)
Installing FirebaseCore (6.8.0)
Installing FirebaseCoreDiagnostics (1.4.0)
Installing FirebaseCrashlytics (4.2.0)
Installing FirebaseFirestore (1.16.1)
Installing FirebaseInstallations (1.5.0)
Installing FirebaseInstanceID (4.5.0)
Installing FirebaseMessaging (4.5.0)
Installing FirebaseRemoteConfig (4.6.0)
Installing FirebaseStorage (3.7.0)
Installing Flurry-iOS-SDK (10.2.0)
Installing GTMAppAuth (1.0.0)
Installing GTMSessionFetcher (1.4.0)
Installing GoogleAppMeasurement (6.6.1)
Installing GoogleDataTransport (6.2.1)
Installing GoogleDataTransportCCTSupport (3.2.0)
Installing GoogleSignIn (5.0.2)
Installing GoogleUtilities (6.7.0)
Installation method: CocoaPods
[REQUIRED] Step 2: Describe the problem
We have integrated Firebase SDK in our iOS app. We are getting build failed error in file GULAppDelegateSwizzler.h on line #import "GoogleUtilities/AppDelegateSwizzler/Private/GULApplication.h" with description 'GoogleUtilities/AppDelegateSwizzler/Private/GULApplication.h' file not found
Steps to reproduce:
Do "pod update", for getting latest pods versions. Try to build project.
Our builds also started failing this morning because of this issue with the latest version of the pods.
Our builds have been failing since yesterday due to GoogleUtilities 6.7.0. I can confirm they succeed with v6.6.0.
If it helps, I was able to get our app to build successfully by reverting line 19 of GULAppDelegateSwizzler.h to #import <GoogleUtilities/GULApplication.h>.
Our builds have been failing since yesterday due to GoogleUtilities 6.7.0. I can confirm they succeed with v6.6.0.
If it helps, I was able to get our app to build successfully by reverting line 19 of
GULAppDelegateSwizzler.hto#import <GoogleUtilities/GULApplication.h>.
any idea on how to achieve the same in azure pipeline?
any idea on how to achieve the same in azure pipeline?
This was just me fiddling around on my local machine trying to diagnose the build. If I wanted to hack it into our actual CI process, I'd write a script to patch/replace that file after installing the pods but before building.
Our builds have been failing since yesterday due to GoogleUtilities 6.7.0. I can confirm they succeed with v6.6.0.
If it helps, I was able to get our app to build successfully by reverting line 19 ofGULAppDelegateSwizzler.hto#import <GoogleUtilities/GULApplication.h>.any idea on how to achieve the same in azure pipeline?
You can fork repo, change GULAppDelegateSwizzler.h and use pod created from forked repo.
Hey everyone - sorry for the issues. GULAppDelegateSwizzler.h was marked as a private header which is why it was changed in a breaking way without a major version bump (in order to provide cleaner SwiftPM integration), we weren't aware of any usages of it external to this repo.
That being said, we're going to discuss this within the team to find out how we can best resolve and hopefully restore functionality for those broken projects or provide patches or workarounds for it.
From comments on the PR that changed things...
react-native-firebase is broken by this change:
https://github.com/firebase/firebase-ios-sdk/pull/5824#discussion_r454737507
Facebook SDK for Unity is broken by this change:
https://github.com/firebase/firebase-ios-sdk/pull/5824#discussion_r454740243
@ryanwilson nativescript-plugin-firebase is affected as well
@vstanyshevskyy thanks for letting us know.
If anybody else has projects affected please let us know.
On that note... it may sound silly but if someone has a quick set of repro steps for an affected project it'd save some time for us trying to get up and running with a project we're unfamiliar with in order to see what solutions will work or what workarounds we can suggest.
@bhargavas12, @Vlad-S-Appyfurious, @jfperusse-bhvr and @JustinPierce - is your project using React Native, another dependency that's affected, or is it a plain ObjC or Swift project? Are you directly using the GULAppDelegateSwizzler.h header somewhere in your own code?
@ryanwilson my project uses NativeScript which has the same idea as React Native. I'm using nativescript-plugin-firebase which installs Firebase pods https://github.com/EddyVerbruggen/nativescript-plugin-firebase/blob/master/publish/scripts/installer.js#L359.
GULAppDelegateSwizzler.h is not used directly there or in my project
@ryanwilson Our project is built with Unity and includes both the Firebase and Facebook SDKs which seem to be affected by the issue. I don't think we are using React Native unless that is a dependency of one of those third party plugins, but the iOS codebase includes both ObjC and Swift. The GULAppDelegateSwizzler.h is only used by those third party plugins.
For Unity users, a workaround we've found is to add a Dependencies.xml editor file with the following content:
<?xml version="1.0" encoding="utf-8"?>
<dependencies>
<iosPods>
<iosPod name="GoogleUtilities" version="6.6.0" />
</iosPods>
</dependencies>
@ryanwilson Our project is a Cordova app. The reference is coming in via cordova-plugin-firebasex (https://github.com/dpa99c/cordova-plugin-firebase). We don't directly reference any of the GoogleUtilities code. I won't claim to know much about ObjC or Swift, but that project doesn't seem to be referencing GULAppDelegateSwizzler.h, either.
Here's a snippet from our CI build log at the point of failure:
@ryanwilson even ours is cordova project and we are using firebaseX which has the internal dependency to GoogleUtilities.
@ryanwilson It looks like FirebaseX was patched this morning to resolve the issue. I believe the issue is that the plugin was asking for v6.27.0 of the Firebase libraries, but those libraries ask for the latest 6.x version of GoogleUtilities. It would appear that versions of FirebaseAuth before 6.28.0 will fail to build with [email protected]. That matches up with my build failure above.
We're working to get a fix ASAP to this issue. A shareable repro case would be helpful to validate. We're able to successfully build samples with Firebase 6.27.x and GoogleUtilities 6.7.0.
In the meantime, adding the following to the Podfile is a reported workaround:
pod 'GoogleUtilities', '6.6.0'
Does rm -rf ~/Library/Developer/Xcode/DerivedData/ make any difference?
Does
rm -rf ~/Library/Developer/Xcode/DerivedData/make any difference?
@paulb777 Can confirm that this did not help.
@alejobrainz I noticed in the other thread you said that the Facebook for Unity SDK had issues as well - can you point me to those? I couldn't find any usages of GoogleUtilities or GULAppDelegateSwizzler in their repo. Thanks!
We now have a repro case. Investigating a fix. Stay tuned.
I understand you have a repro, just in case it comes up again you can always roll out a throwaway react-native-firebase "full demo" with https://github.com/mikehardy/rnfbdemo/blob/master/make-demo-v6.sh
@ryanwilson to add to the list, and if it's helpful; FlutterFire has also started failing to build with the same error, though we don't consume GULAppDelegateSwizzler directly like we do on React Native Firebase, the failure is coming from inside the Firebase Auth iOS SDK;

CI run with failure: https://github.com/FirebaseExtended/flutterfire/pull/2962/checks?check_run_id=873969590
pod update should now resolve this issue by updating to GoogleUtilities 6.7.1
Thanks for the reports, sorry about the breakage, and let us know if there are any issues with this fix.
馃帀 Congrats
馃殌 GoogleUtilities (6.7.1) successfully published
馃搮 July 15th, 09:27
馃寧 https://cocoapods.org/pods/GoogleUtilities
@alejobrainz I noticed in the other thread you said that the Firebase for Unity SDK had issues as well - can you point me to those? I couldn't find any usages of GoogleUtilities or
GULAppDelegateSwizzlerin their repo. Thanks!
@ryanwilson Here you go. We were using the Firebase SDK and hell broke loose yesterday. We had to manually add 6.6.0 in our pod file to work around it.
https://forum.unity.com/threads/ucb-firebase-package-paths-not-found.931566/
Most helpful comment
pod updateshould now resolve this issue by updating to GoogleUtilities 6.7.1Thanks for the reports, sorry about the breakage, and let us know if there are any issues with this fix.
馃帀 Congrats
馃殌 GoogleUtilities (6.7.1) successfully published
馃搮 July 15th, 09:27
馃寧 https://cocoapods.org/pods/GoogleUtilities
馃憤 Tell your friends!