Migrate iOS enableUnhandledCPPExceptionsV2 off the deprecated experimental alias
メンテナーはふだん 1 日以内に返信
@antonis がすでに取り組んでいます。
2026年9月24日 から。
評価
この issue はまだ評価されていません。
説明
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
- 主要言語
- TypeScript
- スター
- 1.8k
- フォーク
- 367
- 平均マージ
- 1日 1時間
- マージ済み PR(30日)
- 100
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
getsentry/sentry-react-native のほかの issue
-
React-Native Replays Task
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
getsentry/sentry-react-native#6680 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Improvement React-Native
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
getsentry/sentry-react-native#6143 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
React-Native Task User Feedbacks
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
getsentry/sentry-react-native#5932 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
React-Native Replays Task
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
getsentry/sentry-react-native#5882 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Good First Issue React-Native Task
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
getsentry/sentry-react-native#5771 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
getsentry/sentry-react-native の issue をすべて見る
似ている issue
-
resources
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
railmapgen/rmg-palette#2445 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
danielmiessler/LifeOS#2242 ·
メンテナーはふだん 5 日以内に返信
-
good first issue hacktoberfest help wanted translation
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
callstackincubator/appduct#129 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100