Skip to content

chore(samples): add package traits to macOS-CLI-Xcode sample config#8408

Merged
philprime merged 6 commits into
mainfrom
philprime/xcodegen-package-traits
Jul 20, 2026
Merged

chore(samples): add package traits to macOS-CLI-Xcode sample config#8408
philprime merged 6 commits into
mainfrom
philprime/xcodegen-package-traits

Conversation

@philprime

@philprime philprime commented Jul 14, 2026

Copy link
Copy Markdown
Member

The Xcode project used for the sample macOS-CLI-Xcode requires the package trait to NoUIFramework to be set. The latest released xcodegen version 2.45.4 does not support package traits.

I have created a contribution in the repository to add support with yonaskolb/XcodeGen#1629

After that pull request is merged and the change is released, we are able to merge this pull request too.

#skip-changelog

Closes #8465

@philprime philprime self-assigned this Jul 14, 2026
@philprime

Copy link
Copy Markdown
Member Author

Related issue: yonaskolb/XcodeGen#1585

@philprime philprime added the ready-to-merge Use this label to trigger all PR workflows label Jul 19, 2026
@sentry

sentry Bot commented Jul 19, 2026

Copy link
Copy Markdown

📲 Install Builds

iOS

🔗 App Name App ID Version Configuration
SDK-Size io.sentry.sample.SDK-Size 9.22.0 (1) Release

⚙️ sentry-cocoa Build Distribution Settings

Generate the macOS CLI Xcode project from its XcodeGen specification before building it in CI. Install and cache the same build dependencies used by the other sample jobs.
@github-actions

github-actions Bot commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1226.43 ms 1263.27 ms 36.83 ms
Size 24.14 KiB 1.24 MiB 1.21 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
ce900e7 1212.40 ms 1244.57 ms 32.18 ms
af5922b 1224.16 ms 1250.40 ms 26.24 ms
16c51a6 1215.72 ms 1256.65 ms 40.93 ms
b32b02f 1227.11 ms 1249.68 ms 22.57 ms
fc4e913 1231.79 ms 1267.89 ms 36.11 ms
962c7bc 1235.49 ms 1262.79 ms 27.30 ms
8aae547 1238.51 ms 1286.63 ms 48.11 ms
cbc75eb 1239.77 ms 1270.89 ms 31.12 ms
67b09b7 1220.04 ms 1258.27 ms 38.23 ms
e9afedf 1230.85 ms 1263.42 ms 32.57 ms

App size

Revision Plain With Sentry Diff
ce900e7 24.14 KiB 1.15 MiB 1.13 MiB
af5922b 24.14 KiB 1.17 MiB 1.15 MiB
16c51a6 24.14 KiB 1.17 MiB 1.15 MiB
b32b02f 24.14 KiB 1.22 MiB 1.20 MiB
fc4e913 24.14 KiB 1.17 MiB 1.15 MiB
962c7bc 24.14 KiB 1.16 MiB 1.13 MiB
8aae547 24.14 KiB 1.24 MiB 1.22 MiB
cbc75eb 24.14 KiB 1.24 MiB 1.22 MiB
67b09b7 24.14 KiB 1.22 MiB 1.20 MiB
e9afedf 24.14 KiB 1.17 MiB 1.15 MiB

Previous results on branch: philprime/xcodegen-package-traits

Startup times

Revision Plain With Sentry Diff
18c7642 1251.00 ms 1271.46 ms 20.46 ms
4eb622b 1225.31 ms 1255.83 ms 30.52 ms

App size

Revision Plain With Sentry Diff
18c7642 24.14 KiB 1.24 MiB 1.21 MiB
4eb622b 24.14 KiB 1.23 MiB 1.21 MiB

@cursor cursor Bot left a comment

Copy link
Copy Markdown

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.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 344ae78. Configure here.

Comment thread Makefile
Comment thread Samples/macOS-CLI-Xcode/macOS-CLI-Xcode.yml
The xcode-ci-macOS-CLI-Xcode target existed but was missing from the
aggregate xcode-ci target. Since the .xcodeproj is now gitignored and
generated via XcodeGen, make init/xcode-ci must generate it too.
Add the traits field to LocalPackage and RemotePackage in the XcodeGen
schema. LocalPackage enumerates the Sentry SDK traits (NoUIFramework,
V10, KSCrash) for autocomplete and validation.
Comment thread .github/workflows/build.yml
@philprime
philprime merged commit 952f116 into main Jul 20, 2026
269 of 275 checks passed
@philprime
philprime deleted the philprime/xcodegen-package-traits branch July 20, 2026 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved ready-to-merge Use this label to trigger all PR workflows skip-changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(samples): add package traits to macOS-CLI-Xcode sample config

2 participants