Xcode Archive fails with missing GoogleUtilities/GULHeartbeatDateStorage.h on Bitrise

A React Native iOS build on Bitrise fails during the Xcode Archive and Export step with a compile error saying GoogleUtilities/GULHeartbeatDateStorage.h cannot be found, in the Firebase CoreDiagnostics source. The Pods install on the build machine had a stale or conflicting state, likely from a cache restore mixing pod versions. Local builds worked because the local Pods directory was clean.

Delete the Pods directory and reinstall. Running rm -rf Pods/ before the pod install cleared the cached conflict and the archive step passed. The reporter confirmed the build succeeded after doing this.

Source: https://github.com/bitrise-io/bitrise/issues/730

Source: https://github.com/bitrise-io/bitrise/issues/730