UCB Firebase package paths not found

I have a build on Firebase 6.14.1 building with 2019.12.f1 which was previously working but is now failing as of today (July 14th) due to an error that appears to start in : FIRAuthErrorUtils.m

12364: ▸ Compiling FIRAuthErrorUtils.m
12365: ▸ Compiling FIRAuthDispatcher.m
12366: ▸ Compiling FIRAuthDefaultUIDelegate.m
12367: ▸ Compiling FIRAuthDataResult.m
12368: ▸ Compiling FIRAuthCredential.m
12369: ▸ Compiling FIRAuthBackend.m
12370: ▸ Compiling FIRAuthBackend+MultiFactor.m
12371: ▸ Compiling FIRAuthAppCredentialManager.m
12372: ▸ Compiling FIRAuthAppCredential.m
12373: ▸ Compiling FIRAuthAPNSTokenManager.m
12374: ▸ Compiling FIRAuthAPNSToken.m
12375: ▸ Compiling FIRAuth.m
12376: :x:; /BUILD_PATH/(app name removed)/temp20200714-6529-1j3pbek/Pods/Headers/Private/GoogleUtilities/GULAppDelegateSwizzler.h:19:9: ‘GoogleUtilities/AppDelegateSwizzler/Private/GULApplication.h’ file not found

This seems related, but a different issue to: UCB build fails - An error occurred while resolving packages - Firebase

We updated that other build to 6.15.2 to fix the 6.15.x issues that thread above, but it has also started failing in the same spot, which leads me to believe this is now a UCB issue, not Firebase.

Experiencing the same issue here; Build gets to the very end, and then fails with the same error, albeit not tripped by exactly the same file as the OP.


66002: ▸ Compiling NSError+FIRMessaging.m
66003: ▸ Compiling NSDictionary+FIRMessaging.m
66004: ▸ Compiling GtalkExtensions.pbobjc.m
66005: ▸ Compiling GtalkCore.pbobjc.m
66006: ▸ Building library libFirebaseRemoteConfig.a
66007: ▸ Compiling FirebaseMessaging-dummy.m
66008: ▸ Compiling FIRMessagingVersionUtilities.m
66009: ▸ Compiling FIRMessagingUtilities.m
66010: ▸ Compiling FIRMessagingTopicOperation.m
66011: ▸ Compiling FIRMessagingSyncMessageManager.m
66012: ▸ Compiling FIRMessagingSecureSocket.m
66013: Could not read serialized diagnostics file: Cannot Load File: Failed to open diagnostics file (in target ‘FirebaseMessaging’ from project ‘Pods’)
66014: ▸ Compiling FIRMessagingRmqManager.m
66015: ▸ Compiling FIRMessagingRemoteNotificationsProxy.m
66016: :x:; /BUILD_PATH/PATH_TO_APP/temp20200714-6861-1n5fotk/Pods/Headers/Private/GoogleUtilities/GULAppDelegateSwizzler.h:19:9: ‘GoogleUtilities/AppDelegateSwizzler/Private/GULApplication.h’ file not found

Same issue here. Hope it’s resolved soon!

It looks like Google just released a broken version of the GoogleUtilities dependency. If you clear your local cocoapods repository then you should encounter the same issue when building locally.

If you update your dependencies to explicitly require GoogleUtilities 6.6.0 then that should resolve this issue - though you may run into new issues caused by other dependencies which require GoogleUtilities 6.7.0. You can probably resolve any issues encountered this way by adding more explicit dependency requirements - take a look at which dependencies were used in your last successful build. Alternatively, Google are most likely already aware of this issue and I would expect to see a fixed version published soon.

2 Likes

I managed to fix local builds by adding this to my pod file:

  pod 'GoogleUtilities', '6.6.0'

Does anyone know how to add that to Unity project? We’re using Firebase 6.15.0. We use the Package Manager, so any pointers as to how to add this dependency would be appreciated.

Try this out: https://github.com/googlesamples/unity-jar-resolver#appending-text-to-generated-podfile

We are facing the same issue. Is there any official place to check the status of this, and maybe get notified when the fix is live?

I am using cloud build and I get this issue as well. Im trying to solve this on unity cloud build and this might solve the issue. It takes over an hour to build via cloud so I dont know yet.

Assets/Editor/iOSTestFlightUtils/PostProcessIOS.cs:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

using System.IO;
using UnityEditor.Callbacks;
using UnityEditor;

public class PostProcessIOS : MonoBehaviour
{
    [PostProcessBuildAttribute(45)]//must be between 40 and 50 to ensure that it's not overriden by Podfile generation (40) and that it's added before "pod install" (50)
    private static void PostProcessBuild_iOS(BuildTarget target, string buildPath)
    {
        if (target == BuildTarget.iOS)
        {

            using (StreamWriter sw = File.AppendText(buildPath + "/Podfile"))
            {
                sw.WriteLine("\n  pod 'GoogleUtilities', '6.6.0'\n");
            }
        }
    }
}

The build just finished successfully. I guess this works.

The Firebase team are aware of this issue and are tracking it here: https://github.com/firebase/firebase-ios-sdk/issues/6047

According to Google, they released an update to GoogleUtilities (6.7.1) fixing the issue:

Congrats* GoogleUtilities (6.7.1) successfully published
July 15th, 09:27
GoogleUtilities on CocoaPods.org
Tell your friends!*

FYI the GoogleUtilities update works fine with Firebase 6.15.2 builds, but not 6.14.1.