Skip to content

chore: Add Package@swift-6.2.swift#7778

Merged
itaybre merged 8 commits intomainfrom
itay/add_package_6.2
Apr 22, 2026
Merged

chore: Add Package@swift-6.2.swift#7778
itaybre merged 8 commits intomainfrom
itay/add_package_6.2

Conversation

@itaybre
Copy link
Copy Markdown
Contributor

@itaybre itaybre commented Apr 6, 2026

📜 Description

Add a newer Package@swift-6.2.swift, so newer SPM tools use it instead and allow using unsafe flags.

💡 Motivation and Context

When using plain SPM, seems like using unsafe flags is disabled when swift tools is lower than 6.1

Fixes: #7738

💚 How did you test it?

Tested it with a sample project and using releases on a fork

📝 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.

@itaybre itaybre added the ready-to-merge Use this label to trigger all PR workflows label Apr 6, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 6, 2026

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


Bug Fixes 🐛

  • (breadcrumbs) Unsubscribe to system event during background to avoid reporting breadcrumbs with wrong timestamps on return to foreground by denrase in #7803
  • (replay) Keep replayType as buffer for Session Replay triggered by an error by romtsn in #7804
  • Copy mutable collections before passing to scope observers by antonis in #7807
  • Detect development builds via provisioning profile entitlement by denrase in #7702

Internal Changes 🔧

Deps

  • Bump getsentry/craft/.github/workflows/changelog-preview.yml from 2.25.2 to 2.25.4 by dependabot in #7811
  • Bump actions/create-github-app-token from 3.0.0 to 3.1.1 by dependabot in #7812
  • Bump ruby/setup-ruby from 1.299.0 to 1.302.0 by dependabot in #7813
  • Bump peter-evans/create-pull-request from 8.1.0 to 8.1.1 by dependabot in #7791
  • Bump actions/upload-artifact from 7.0.0 to 7.0.1 by dependabot in #7790
  • Bump actions/upload-pages-artifact from 4.0.0 to 5.0.0 by dependabot in #7789
  • Bump actions/github-script from 8.0.0 to 9.0.0 by dependabot in #7793

Other

  • Add Package@swift-6.2.swift by itaybre in #7778

🤖 This preview updates automatically when you update the PR.

@itaybre itaybre changed the title Itay/add package 6.2 chore: Add Package@swift-6.2.swift Apr 6, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.451%. Comparing base (3c74b55) to head (d974dc8).
⚠️ Report is 5 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##              main     #7778       +/-   ##
=============================================
+ Coverage   85.437%   85.451%   +0.014%     
=============================================
  Files          487       487               
  Lines        29226     29227        +1     
  Branches     12645     12648        +3     
=============================================
+ Hits         24970     24975        +5     
+ Misses        4206      4202        -4     
  Partials        50        50               

see 4 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3c74b55...d974dc8. Read the comment docs.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 6, 2026

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1240.54 ms 1268.38 ms 27.84 ms
Size 24.14 KiB 1.13 MiB 1.11 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
0e4b033 1203.74 ms 1249.71 ms 45.97 ms
bbee1ba 1197.79 ms 1215.42 ms 17.63 ms
59981b9 1207.25 ms 1240.71 ms 33.46 ms
64a365a 1225.60 ms 1255.49 ms 29.89 ms
93d7fdf 1225.77 ms 1259.79 ms 34.02 ms
e03f459 1222.56 ms 1255.94 ms 33.37 ms
ffac605 1217.10 ms 1256.91 ms 39.81 ms
2f4ddaa 1227.26 ms 1260.04 ms 32.78 ms
778dadf 1207.69 ms 1246.09 ms 38.40 ms
daf8b80 1233.78 ms 1259.44 ms 25.66 ms

App size

Revision Plain With Sentry Diff
0e4b033 24.14 KiB 1.11 MiB 1.09 MiB
bbee1ba 24.14 KiB 1.11 MiB 1.09 MiB
59981b9 24.14 KiB 1.09 MiB 1.06 MiB
64a365a 24.14 KiB 1.09 MiB 1.06 MiB
93d7fdf 24.14 KiB 1.11 MiB 1.08 MiB
e03f459 24.14 KiB 1.11 MiB 1.09 MiB
ffac605 24.14 KiB 1.13 MiB 1.10 MiB
2f4ddaa 24.14 KiB 1.04 MiB 1.02 MiB
778dadf 24.14 KiB 1.04 MiB 1.02 MiB
daf8b80 24.14 KiB 1.11 MiB 1.09 MiB

Previous results on branch: itay/add_package_6.2

Startup times

Revision Plain With Sentry Diff
ddbba4a 1205.94 ms 1228.64 ms 22.70 ms
4a2d69f 1194.06 ms 1218.38 ms 24.32 ms

App size

Revision Plain With Sentry Diff
ddbba4a 24.14 KiB 1.13 MiB 1.11 MiB
4a2d69f 24.14 KiB 1.13 MiB 1.11 MiB

@itaybre itaybre marked this pull request as ready for review April 8, 2026 01:02
Comment thread Package@swift-6.2.swift Outdated
Comment thread Package@swift-6.2.swift Outdated
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit ce93130. Configure here.

Comment thread Package@swift-6.2.swift Outdated
Comment thread .github/workflows/release.yml
Copy link
Copy Markdown
Member

@philprime philprime left a comment

Choose a reason for hiding this comment

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

LGTM

@itaybre itaybre merged commit f2e369d into main Apr 22, 2026
187 checks passed
@itaybre itaybre deleted the itay/add_package_6.2 branch April 22, 2026 13:50
philprime added a commit that referenced this pull request Apr 23, 2026
Package@swift-6.2.swift (added in #7778 on main) is missing the
SentryObjC/SentryObjCBridge subdirectory excludes for
SentryObjCInternal, and the entire SentryObjC product + target block.
Swift 6.2 tools (Xcode 26.3+) pick this manifest over Package.swift,
so package resolution fails with "target at '.../Sources' contains
mixed language source files" because SentryObjCBridge/ ships a Swift
file while the rest of Sources/ is ObjC/C++.

Add the two subdirectories to the SentryObjCInternal exclude list and
append the SentryObjC library product along with its
SentryObjCBridge and SentryObjC targets, mirroring the layout already
present in Package.swift and Package@swift-6.1.swift.

Refs GH-6342
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge Use this label to trigger all PR workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

the target 'SentrySwift' in product 'SentrySPM' contains unsafe build flags

2 participants