Migrate iOS enableUnhandledCPPExceptionsV2 off the deprecated experimental alias
I maintainer di solito rispondono entro 1 giorno
@antonis ci sta già lavorando.
Dal 24/9/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Description
sentry-cocoa #9134 promotes enableUnhandledCPPExceptionsV2 from SentryOptions.experimental up to a top-level SentryOptions property. The old experimental.enableUnhandledCPPExceptionsV2 is kept as a shared-value deprecated alias and, per the deprecation annotation, will be removed in the next cocoa minor release.
The RN SDK reads and writes this option in packages/core/ios/RNSentryExperimentalOptions.m:
sentryOptions.experimental.enableUnhandledCPPExceptionsV2 = enabled; // setter
return sentryOptions.experimental.enableUnhandledCPPExceptionsV2; // getter
Impact
- At the cocoa release that ships #9134 (a v9 minor): RN still compiles and behaves identically — the alias shares the same backing value — but these two lines will emit deprecation warnings (the ObjC property gains
DEPRECATED_MSG_ATTRIBUTE). - At the following cocoa minor, where the alias is removed:
sentryOptions.experimental.enableUnhandledCPPExceptionsV2will fail to compile.
We currently bundle cocoa 9.29.0, so there is no runtime breakage today. This is a tracking issue to migrate ahead of the removal.
Action
Switch to the top-level property (exposed on the ObjC wrapper SentryObjCOptions.h) at the next cocoa bump that contains #9134:
sentryOptions.enableUnhandledCPPExceptionsV2 = enabled;
return sentryOptions.enableUnhandledCPPExceptionsV2;
- Behavior is identical; the top-level property exists in the same release, so this also clears the deprecation warning immediately.
- The JS
_experiments.enableUnhandledCPPExceptionsV2key and RN's public API stay unchanged — this is purely the native mapping inRNSentryExperimentalOptions.m.
References
- sentry-cocoa PR: https://github.com/getsentry/sentry-cocoa/pull/9134
- Lingua principale
- TypeScript
- Stelle
- 1.8k
- Fork
- 367
- Merge medio
- 1g 1h
- PR unite (30g)
- 100
Preparare l'ambiente
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di getsentry/sentry-react-native
-
React-Native Replays Task
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
getsentry/sentry-react-native#6680 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Improvement React-Native
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
getsentry/sentry-react-native#6143 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
React-Native Task User Feedbacks
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
getsentry/sentry-react-native#5932 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
React-Native Replays Task
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
getsentry/sentry-react-native#5882 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Good First Issue React-Native Task
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 65/100
getsentry/sentry-react-native#5771 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di getsentry/sentry-react-native
Issue simili
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
StabilityNexus/Fate-EVM-Frontend#153 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
code-yeongyu/oh-my-openagent#9039 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
Tencent/teamai-cli#862 ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue hacktoberfest redis
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
libredb/libredb-studio#1164 ·
I maintainer di solito rispondono entro 1 giorno
-
flake
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno