Skip to content

ci: Validate XCFramework architectures#7883

Merged
philprime merged 2 commits into
philprime/objc-wrapper-sdk-6342from
ci/validate-xcframework-architectures
May 8, 2026
Merged

ci: Validate XCFramework architectures#7883
philprime merged 2 commits into
philprime/objc-wrapper-sdk-6342from
ci/validate-xcframework-architectures

Conversation

@philprime
Copy link
Copy Markdown
Member

Add a reusable XCFramework architecture validator that compares each Info.plist SupportedArchitectures entry with the architectures reported by lipo for the packaged binary.

Wire the validator into the shared XCFramework assembly workflow, the SentryObjC assembly workflow, and local XCFramework builds. This makes missing slices fail with an explicit expected-versus-actual architecture message instead of surfacing later as a linker error.

Also verify codesign immediately after signing release XCFrameworks in the compression helper.

Stacked on #7598.

#skip-changelog

@philprime philprime marked this pull request as ready for review May 7, 2026 15:52
@philprime philprime marked this pull request as draft May 7, 2026 15:52
@philprime philprime added the ready-to-merge Use this label to trigger all PR workflows label May 7, 2026
@philprime philprime self-assigned this May 7, 2026
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 f601422. Configure here.

Comment thread scripts/validate-xcframework-architectures.sh Outdated
Comment thread scripts/validate-xcframework-architectures.sh Outdated
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 7, 2026

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1227.56 ms 1261.02 ms 33.46 ms
Size 24.14 KiB 1.16 MiB 1.13 MiB

Baseline results on branch: philprime/objc-wrapper-sdk-6342

Startup times

Revision Plain With Sentry Diff
39908fa 1216.45 ms 1247.67 ms 31.22 ms
1db3ef0 3762.07 ms 3780.62 ms 18.56 ms
7b3193a 1214.08 ms 1250.08 ms 36.00 ms
87bd6e0 1240.02 ms 1246.75 ms 6.73 ms
e55e60d 1217.93 ms 1251.80 ms 33.86 ms
82293b9 1205.29 ms 1241.32 ms 36.03 ms
bb809e8 1229.33 ms 1262.54 ms 33.21 ms
7e3cf1f 1208.80 ms 1244.33 ms 35.52 ms
14dc1d7 1207.65 ms 1228.72 ms 21.08 ms
664430d 1225.83 ms 1256.84 ms 31.01 ms

App size

Revision Plain With Sentry Diff
39908fa 24.14 KiB 1.13 MiB 1.11 MiB
1db3ef0 24.14 KiB 1.12 MiB 1.10 MiB
7b3193a 24.14 KiB 1.15 MiB 1.13 MiB
87bd6e0 24.14 KiB 1.13 MiB 1.11 MiB
e55e60d 24.14 KiB 1.15 MiB 1.13 MiB
82293b9 24.14 KiB 1.15 MiB 1.13 MiB
bb809e8 24.14 KiB 1.12 MiB 1.10 MiB
7e3cf1f 24.14 KiB 1.12 MiB 1.10 MiB
14dc1d7 24.14 KiB 1.13 MiB 1.11 MiB
664430d 24.14 KiB 1.12 MiB 1.10 MiB

Previous results on branch: ci/validate-xcframework-architectures

Startup times

Revision Plain With Sentry Diff
e86e5be 1229.20 ms 1261.06 ms 31.86 ms

App size

Revision Plain With Sentry Diff
e86e5be 24.14 KiB 1.16 MiB 1.13 MiB

Catch jq failures before reading library records so malformed XCFramework metadata cannot report a passing validation without checking any binaries.
@philprime philprime marked this pull request as ready for review May 8, 2026 08:43
@philprime philprime merged commit 8ca4e35 into philprime/objc-wrapper-sdk-6342 May 8, 2026
191 checks passed
@philprime philprime deleted the ci/validate-xcframework-architectures branch May 8, 2026 08:44
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.

1 participant