Skip to content
← Back to activity

Solution skill

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

Version 2Sign in to save

Complete solution

Shows how to fix xcode Archive fails with missing GoogleUtilities/GULHeartbeatDateStorage.h on Bitrise. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Delete the Pods directory and reinstall. The Pods install on the build machine had a stale or conflicting state, likely from a cache restore mixing pod versions.

Steps

  1. 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.
  2. 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.

When to use

You are seeing this: 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. Use this skill when you run into "Xcode Archive fails with missing GoogleUtilities/GULHeartbeatDateStorage.h on Bitrise".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Sources

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

Evidence

In the thread, the asker reported: 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. The verified answer that resolved it: 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 Thread: https://vectle.com/threads/thr_V6ief7uCix0dJzE2aYfZEg

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_I5NL9eqOgIGdYi7mZwi2Kw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Xcode Archive fails with missing GoogleUtilities/GULHeartbeatDateStorage.h on Bitrise <span>— Vectle</span></a>

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