Skip to content

error: Module '_SentryPrivate' not found (in target 'Sentry' from project 'Pods') #5652

@miclairy

Description

@miclairy

What React Native libraries do you use?

RN New Architecture

Are you using sentry.io or on-premise?

sentry.io (SaS)

@sentry/react-native SDK Version

8.0.0-beta.0

How does your development environment look like?

System:
  OS: macOS 26.2
  CPU: (14) arm64 Apple M3 Max
  Memory: 213.84 MB / 36.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 25.6.0
    path: /usr/local/bin/node
  Yarn:
    version: 3.6.4
    path: /opt/homebrew/bin/yarn
  npm:
    version: 11.8.0
    path: /usr/local/bin/npm
  Watchman:
    version: 2025.05.19.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.16.2
    path: /Users/clairebarnaby/.rbenv/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 25.2
      - iOS 26.2
      - macOS 26.2
      - tvOS 26.2
      - visionOS 26.2
      - watchOS 26.2
  Android SDK:
    API Levels:
      - "34"
      - "35"
      - "36"
    Build Tools:
      - 34.0.0
      - 35.0.0
      - 36.0.0
    System Images:
      - android-35 | Google Play ARM 64 v8a
      - android-36 | Google Play ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2025.2 AI-252.28238.7.2523.14688667
  Xcode:
    version: 26.2/17C52
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 20.0.2
    path: /usr/bin/javac
  Ruby:
    version: 3.3.8
    path: /Users/clairebarnaby/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react: Not Found
  react-native: Not Found
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

Sentry.init()

Sentry.init({
  dsn: 'https://...@sentry.io/...'
  // other options
});

Steps to Reproduce

  1. Upgrade from 6.15.1 to 8.0.0-beta.0
  2. Set up the new native crash reporting feature
  3. Run IOS debug build --> all is fine
  4. Run IOS release build --> fails to build

Expected Result

I expected that the ios build would succeed in the release version as well as the debug

Actual Result

It fails to build with this error:

Swift.h:288:9: error: Module '_SentryPrivate' not found (in target 'Sentry' from project 'Pods')

Some more of the trace:

Users/buildermachine/runner-01/_work/monorepo/monorepo/frontend/mobile/ios/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/matchwornshirt/IntermediateBuildFilesPath/Pods.build/Acceptance-iphoneos/Sentry.build/DerivedSources/Sentry-Swift.h:288:9: error: Module '_SentryPrivate' not found (in target 'Sentry' from project 'Pods')
    /Users/buildermachine/runner-01/_work/monorepo/monorepo/frontend/mobile/ios/Pods/Sentry/Sources/Sentry/SentryViewHierarchyProviderHelper.m:8:13: note: in file included from /Users/buildermachine/runner-01/_work/monorepo/monorepo/frontend/mobile/ios/Pods/Sentry/Sources/Sentry/SentryViewHierarchyProviderHelper.m:8:
    /Users/buildermachine/runner-01/_work/monorepo/monorepo/frontend/mobile/ios/Pods/Sentry/Sources/Sentry/include/SentrySwift.h:33:17: note: in file included from /Users/buildermachine/runner-01/_work/monorepo/monorepo/frontend/mobile/ios/Pods/Sentry/Sources/Sentry/include/SentrySwift.h:33:

ScanDependencies /Users/buildermachine/runner-01/_work/monorepo/monorepo/frontend/mobile/ios/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/matchwornshirt/IntermediateBuildFilesPath/Pods.build/Acceptance-iphoneos/Sentry.build/Objects-normal/arm64/SentryUserAccess.o /Users/buildermachine/runner-01/_work/monorepo/monorepo/frontend/mobile/ios/Pods/Sentry/Sources/Sentry/SentryUserAccess.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Sentry' from project 'Pods')
    cd /Users/buildermachine/runner-01/_work/monorepo/monorepo/frontend/mobile/ios/Pods
--
/Users/buildermachine/runner-01/_work/monorepo/monorepo/frontend/mobile/ios/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/matchwornshirt/IntermediateBuildFilesPath/Pods.build/Acceptance-iphoneos/Sentry.build/DerivedSources/Sentry-Swift.h:288:9: error: Module '_SentryPrivate' not found (in target 'Sentry' from project 'Pods')
    /Users/buildermachine/runner-01/_work/monorepo/monorepo/frontend/mobile/ios/Pods/Sentry/Sources/Sentry/SentryUIViewControllerSwizzling.m:8:13: note: in file included from /Users/buildermachine/runner-01/_work/monorepo/monorepo/frontend/mobile/ios/Pods/Sentry/Sources/Sentry/SentryUIViewControllerSwizzling.m:8:
    /Users/buildermachine/runner-01/_work/monorepo/monorepo/frontend/mobile/ios/Pods/Sentry/Sources/Sentry/include/SentrySwift.h:33:17: note: in file included from /Users/buildermachine/runner-01/_work/monorepo/monorepo/frontend/mobile/ios/Pods/Sentry/Sources/Sentry/include/SentrySwift.h:33:

CompileC /Users/buildermachine/runner-01/_work/monorepo/monorepo/frontend/mobile/ios/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/matchwornshirt/IntermediateBuildFilesPath/Pods.build/Acceptance-iphoneos/react-native-stallion.build/Objects-normal/arm64/StallionStateManager.o /Users/buildermachine/runner-01/_work/monorepo/monorepo/frontend/mobile/node_modules/react-native-stallion/ios/main/StallionStateManager.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'react-native-stallion' from project 'Pods')
    cd /Users/buildermachine/runner-01/_work/monorepo/monorepo/frontend/mobile/ios/Pods
--
/Users/buildermachine/runner-01/_work/monorepo/monorepo/frontend/mobile/ios/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/matchwornshirt/IntermediateBuildFilesPath/Pods.build/Acceptance-iphoneos/Sentry.build/DerivedSources/Sentry-Swift.h:288:9: error: Module '_SentryPrivate' not found (in target 'Sentry' from project 'Pods')
    /Users/buildermachine/runner-01/_work/monorepo/monorepo/frontend/mobile/ios/Pods/Sentry/Sources/Sentry/SentryTransactionContext.m:5:9: note: in file included from /Users/buildermachine/runner-01/_work/monorepo/monorepo/frontend/mobile/ios/Pods/Sentry/Sources/Sentry/SentryTransactionContext.m:5:
    /Users/buildermachine/runner-01/_work/monorepo/monorepo/frontend/mobile/ios/Pods/Sentry/Sources/Sentry/include/SentrySwift.h:33:17: note: in file included from /Users/buildermachine/runner-01/_work/monorepo/monorepo/frontend/mobile/ios/Pods/Sentry/Sources/Sentry/include/SentrySwift.h:33:

ScanDependencies /Users/buildermachine/runner-01/_work/monorepo/monorepo/frontend/mobile/ios/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/matchwornshirt/IntermediateBuildFilesPath/Pods.build/Acceptance-iphoneos/Sentry.build/Objects-normal/arm64/SentryTransaction.o /Users/buildermachine/runner-01/_work/monorepo/monorepo/frontend/mobile/ios/Pods/Sentry/Sources/Sentry/SentryTransaction.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (in target 'Sentry' from project 'Pods')
    cd /Users/buildermachine/runner-01/_work/monorepo/monorepo/frontend/mobile/ios/Pods

Metadata

Metadata

Assignees

Projects

Status

Waiting for: Community

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions