Skip to content

iOS Build Failure on EAS: Pods.xcodeproj Corrupted with _setSavedArchiveVersion Error #5285

@70nyIT

Description

@70nyIT

What React Native libraries do you use?

Expo Application Services (EAS)

Are you using sentry.io or on-premise?

sentry.io (SaS)

@sentry/react-native SDK Version

7.4.0

How does your development environment look like?

- @sentry/react-native: 7.4.0
- Expo SDK: 54.0.13
- React Native: 0.81.4
- EAS Build: Latest
- Build Server Image: `macos-sequoia-15.6-xcode-26.0`
- Xcode: 26.0
- CocoaPods: 1.16.2
- Platform: iOS only (Android builds work fine)

Sentry.init()

Sentry.init({
    dsn: 'https://[vaule]@[value].ingest.de.sentry.io/[value]',

    // Use custom tunnel endpoint for log collection
    tunnel: 'https://custom.example.com',

    release: '1.0.0', // this is dynamic - read from package.json

    // Set distribution to help differentiate between platforms
    dist: process.env.EXPO_PLATFORM || 'unknown',

    // Adds more context data to events (IP address, cookies, user, etc.)
    sendDefaultPii: true,

    // Enable Logs
    enableLogs: true,

    // Filter out errors before sending to Sentry
    beforeSend(event, hint) {
      const error = hint.originalException;
      { ... } // custom filters
      return event;
    },

    // Configure Session Replay
    replaysSessionSampleRate: 0.1,
    replaysOnErrorSampleRate: 1,
    integrations: [Sentry.mobileReplayIntegration(), Sentry.feedbackIntegration()],
  });

Steps to Reproduce

  1. Create an Expo app with Expo SDK 54
  2. Install @sentry/react-native version 7.4.0
  3. Add Sentry initialization in app code (with or without the Expo plugin in app.config.ts)
  4. Run eas build --platform ios on EAS Build
  5. Build fails with the error above during CocoaPods phase

Expected Result

Builds with no errors

Actual Result

iOS builds fail on EAS Build with a corrupted Pods.xcodeproj file. The error occurs during xcodebuild -resolvePackageDependencies before the build even starts, making it impossible to compile the app.

Error Message

xcodebuild[4750:15583] -[PBXShellScriptBuildPhase _setSavedArchiveVersion:]: unrecognized selector sent to instance 0x6000031b4900

[MT] IDEFileReferenceDebug: [Load] <IDEFileReference, 0x12bf82a10: name:Pods path:group:Pods/Pods.xcodeproj> Failed to load container at path: /Users/expo/workingdir/build/ios/Pods/Pods.xcodeproj, Error: Error Domain=Xcode3ProjectErrorDomain Code=2 "The project 'Pods' is damaged and cannot be opened. Examine the project file for invalid edits or unresolved source control conflicts.
Path: /Users/expo/workingdir/build/ios/Pods/Pods.xcodeproj
Exception: -[PBXShellScriptBuildPhase _setSavedArchiveVersion:]: unrecognized selector sent to instance 0x6000031b4900"

What We've Tried

  • ✅ Removed Sentry Expo plugin from app.config.ts - still fails
  • ✅ Used --clear-cache flag - still fails
  • ✅ Configured disableAutoUpload: true in Sentry plugin - still fails
  • ✅ Deleted local ios/Pods folder - still fails on EAS

Metadata

Metadata

Assignees

No fields configured for issues without a type.

Projects

Status

Waiting for: Community

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions