Skip to content

iOS build fails with Swift compile error: 'UserFeedback' is not convertible to 'any Error' (Xcode 15.1) #5553

@Kobby-Bawuah

Description

@Kobby-Bawuah

What React Native libraries do you use?

Expo (mobile only), Expo Router, Hermes

Are you using sentry.io or on-premise?

sentry.io (SaS)

@sentry/react-native SDK Version

7.8.0 (also reproduced with 7.7.0)

How does your development environment look like?

Xcode: 15.1
Swift: 5
iOS Deployment Target: 15.1
React Native: 0.76.1
Expo SDK: 52
Sentry Cocoa SDK (from Podfile.lock): 8.57.3

Sentry.init()

The user will append this below

Steps to Reproduce

  1. Create Expo project with @sentry/react-native ^7.8.0
  2. Run expo run:ios
  3. Build fails during Sentry pod compilation

Expected Result

Build completes successfully

Actual Result

Build fails with Swift compilation error:

❌ Sentry/Sources/Swift/Helper/SentrySDK.swift:251:49

249 | @objc(captureUserFeedback:)
250 | public static func capture(userFeedback: UserFeedback) {

251 | SentrySDKInternal.capture(userFeedback: userFeedback)
| ^ 'UserFeedback' is not convertible to 'any Error'
252 | }

Metadata

Metadata

Assignees

Projects

Status

Waiting for: Product Owner

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions