Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

UCB Firebase package paths not found

Discussion in 'Package Manager' started by nmd2, Jul 14, 2020.

  1. nmd2

    nmd2

    Joined:
    Mar 19, 2019
    Posts:
    13
    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: ❌; /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: https://forum.unity.com/threads/ucb...red-while-resolving-packages-firebase.929070/

    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.
     
    Last edited: Jul 14, 2020
  2. PJTTG

    PJTTG

    Joined:
    Oct 4, 2018
    Posts:
    9
    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: ❌; /BUILD_PATH/PATH_TO_APP/temp20200714-6861-1n5fotk/Pods/Headers/Private/GoogleUtilities/GULAppDelegateSwizzler.h:19:9: 'GoogleUtilities/AppDelegateSwizzler/Private/GULApplication.h' file not found
    ...
     
  3. alejojamcity

    alejojamcity

    Joined:
    Aug 30, 2018
    Posts:
    7
    Same issue here. Hope it's resolved soon!
     
  4. victorw

    victorw

    Unity Technologies

    Joined:
    Sep 14, 2016
    Posts:
    459
    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.
     
    Thaina and nmd2 like this.
  5. alejojamcity

    alejojamcity

    Joined:
    Aug 30, 2018
    Posts:
    7
    I managed to fix local builds by adding this to my pod file:

    Code (CSharp):
    1.   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.
     
    Last edited: Jul 15, 2020
  6. nmd2

    nmd2

    Joined:
    Mar 19, 2019
    Posts:
    13
    Last edited: Jul 15, 2020
  7. GastonC

    GastonC

    Joined:
    Aug 26, 2012
    Posts:
    33
    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?
     
  8. MickeDN

    MickeDN

    Joined:
    Apr 16, 2020
    Posts:
    2
    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:


    Code (CSharp):
    1.  
    2. using System.Collections;
    3. using System.Collections.Generic;
    4. using UnityEngine;
    5.  
    6. using System.IO;
    7. using UnityEditor.Callbacks;
    8. using UnityEditor;
    9.  
    10. public class PostProcessIOS : MonoBehaviour
    11. {
    12.     [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)
    13.     private static void PostProcessBuild_iOS(BuildTarget target, string buildPath)
    14.     {
    15.         if (target == BuildTarget.iOS)
    16.         {
    17.  
    18.             using (StreamWriter sw = File.AppendText(buildPath + "/Podfile"))
    19.             {
    20.                 sw.WriteLine("\n  pod 'GoogleUtilities', '6.6.0'\n");
    21.             }
    22.         }
    23.     }
    24. }
     
  9. MickeDN

    MickeDN

    Joined:
    Apr 16, 2020
    Posts:
    2
    The build just finished successfully. I guess this works.
     
  10. victorw

    victorw

    Unity Technologies

    Joined:
    Sep 14, 2016
    Posts:
    459
    The Firebase team are aware of this issue and are tracking it here: https://github.com/firebase/firebase-ios-sdk/issues/6047
     
  11. alejojamcity

    alejojamcity

    Joined:
    Aug 30, 2018
    Posts:
    7
    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
    https://cocoapods.org/pods/GoogleUtilities
    Tell your friends!*
     
  12. nmd2

    nmd2

    Joined:
    Mar 19, 2019
    Posts:
    13
    FYI the GoogleUtilities update works fine with Firebase 6.15.2 builds, but not 6.14.1.