Skip to content

ref: Add native utility and profiling targets #9740

Todo

Description

@github-actions

Note

The pull request "ref: Add native utility and profiling targets" was created by @philprime and did not reference an issue. Therefore this issue was created for better visibility in external tools like Linear.

📜 Description

Establish SentryNativeUtils and SentryProfiling as separate static-library targets in Xcode and SwiftPM. Start with the shared time helpers and the profiling system-metrics value object, with SDK targets consuming their single implementation owners.

💡 Motivation and Context

Create the dependency boundaries independently of the profiling refactor stack. SentryNativeUtils is an Objective-C++ utility library and must contain no Swift sources or depend on Swift targets. Both libraries remain independent of SDK implementation code and crash backends.

The sampler and profiling capability checks remain SDK-side. SwiftPM owns the new test suites, including one merged Swift XCTest time suite with scoped Objective-C assertion support. Build settings preserve static dependency archives and existing SDK exports. The architecture documentation includes the dependency diagram.

#skip-changelog

💚 How did you test it?

  • Standalone Xcode macOS builds for both libraries and an isolated SDK macOS build passed.
  • The new package suites passed on macOS for V9 and V10, and on iOS and Mac Catalyst for V9.
  • Static analysis, formatting, and commit hooks passed.
  • Downloaded the XCFrameworks from the latest completed main Release run, 45193950938, at the branch base e089a6983. The available generated iOS arm64 dynamic artifact matches all 6,458 defined exports and retains all five Objective-C category records from that baseline.
  • Verification was stopped as requested. The remaining platform matrix, static-artifact comparison, and other slice/variant comparisons are not complete locally. Comprehensive CI is requested with run-full-ci.

📝 Checklist

  • 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. No wizard changes required.
  • 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.
  • Public API changes reviewed by another Mobile SDK team member or implemented according to the develop docs spec.
  • If I added a new public API, I also added it to the SentryObjC wrapper. Not applicable: these are internal implementation boundaries.

Activity

  1. added
    autocreated
    on Nov 24, 2026
  2. linear-code commented on Nov 24, 2026

    @linear-code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

autocreated

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions