Use Cocoa build-settings passthrough instead of xcconfig

Open
#5,633 1 comment 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Active
Tech stack
shell
Domain
build-system

Research direction

First check getsentry/sentry-cocoa#9167 and confirm the updated packaging script is available in the consumed submodule. Then inspect scripts/build-sentry-cocoa.sh and scripts/sentry-cocoa.xcconfig. Done means passing the build setting through --build-settings, preserving inherited preprocessor definitions, and removing the obsolete xcconfig workaround.

Written by the indexing model from the issue text.

Description

.NET State: Needs Discussion

Blocked by https://github.com/getsentry/sentry-cocoa/issues/9167.

scripts/build-sentry-cocoa.sh currently uses XCODE_XCCONFIG_FILE to inject SENTRY_CRASH_MANAGED_RUNTIME=1 into the Cocoa build because the upstream packaging script does not expose custom build settings.

  • Once the Cocoa issue is resolved and the updated script is available in the consumed submodule, update build-sentry-cocoa.sh to pass the build setting directly through build-xcframework-sentryobjc.sh --build-settings.
  • Preserve inherited preprocessor definitions alongside SENTRY_CRASH_MANAGED_RUNTIME=1.
  • Remove the obsolete scripts/sentry-cocoa.xcconfig workaround.

via Thomas Hedderwick.

--

View Junior Session [Sentry]

Dominant language
C#
Stars
775
Forks
262
Avg merge
1d 16h
Merged PRs (30d)
118

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from getsentry/sentry-dotnet

All issues in getsentry/sentry-dotnet

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.