Skip to content

Conversation

@philprime
Copy link
Member

@philprime philprime commented Dec 1, 2025

📜 Description

  • Adds check for isiOSAppOnVisionOS supporting all visionOS versions
  • Adds isiOSAppOnVisionOS, isiOSAppOnMac, isMacCatalystApp to device context

💡 Motivation and Context

Closes #3824
Closes #3825

💚 How did you test it?

visionOS

  • Added "Apple Vision (Designed for iPad)" to the list of supported destinations for the sample app iOS-Swift
  • Ran the scheme iOS-Swift
  • Tapped on "Capture Error" to send an error event
  • Checked the event context in Sentry if ios_app_on_visionos, ios_app_on_macos and mac_catalyst_app are set
OS Version Event ios_app_on_visionos ios_app_on_macos mac_catalyst_app
visionOS 26.1 Link
visionOS 26.0 Link
visionOS 2.5 Link
visionOS 2.4 Link
visionOS 2.3 Link
visionOS 2.2 Link
visionOS 2.1 Link
visionOS 2.0 Link
visionOS 1.2 Link
visionOS 1.1 Link
visionOS 1.0 Link

Note: During testing I encountered an unrecognized selector SDK crash on visionOS 1.1, even though it was gated with an availability check. I fixed it by adding the recognized selector check.

Unit Tests

In addition I added a unit test which asserts that the flag isiOSAppOnVisionOS is default false.

📝 Checklist

You have to check all boxes before merging:

  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 1, 2025

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 65c21cb

CHANGELOG.md Outdated
- Add `sentry.replay_id` attribute to logs ([#6515](https://github.com/getsentry/sentry-cocoa/pull/6515))
- Structured Logs: Add log APIs to `Hub` and `Client` (#6737)
- Add options to customize UserFeedback error messages (#6790)
- Add isiOSAppOnVisionOS, isiOSAppOnMac, isMacCatalystApp to device context #6939
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • 🚫 The changelog entry seems to be part of an already released section ## 9.0.0.
    Consider moving the entry to the ## Unreleased section, please.

@codecov
Copy link

codecov bot commented Dec 1, 2025

⚠️ JUnit XML file not found

The CLI was unable to find any JUnit XML files to upload.
For more help, visit our troubleshooting guide.

@philprime philprime self-assigned this Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Identify when iOS app runs on a Mac Identify when iOS app runs on VisionOS

2 participants