Skip to content

Commit 0d5eaee

Browse files
committed
PR comments
1 parent c1e6b5c commit 0d5eaee

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
- Fix crash in Session Replay when opening the camera UI on iOS 26+ by skipping redaction of internal views.
88
This may result in more of the camera screen being redacted. (#6045)
9-
- Fix crash when using the SDK as a static framework (#6125)
9+
- Fix crash in SentryDependencyContainer init when using the SDK as a static framework (#6125)
1010

1111
## 8.56.0-alpha.1
1212

Sources/Sentry/SentryDependencyContainer.m

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,6 @@ - (instancetype)init
144144
if (self = [super init]) {
145145
isInitialializingDependencyContainer = YES;
146146

147-
// These classes must be referenced somewhere for their files to not be stripped.
148-
id _ = [[PlaceholderSentryApplication alloc] init];
149-
_ = [[PlaceholderProcessInfoClass alloc] init];
150-
151147
_dispatchQueueWrapper = SentryDependencies.dispatchQueueWrapper;
152148
_random = [[SentryRandom alloc] init];
153149
_threadWrapper = [[SentryThreadWrapper alloc] init];

Sources/Sentry/SentrySDKInternal.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,9 @@ + (void)startWithOptions:(SentryOptions *)options
254254
// Reference to SentryCrashExceptionApplication to prevent compiler from stripping it
255255
[SentryCrashExceptionApplication class];
256256
#endif
257+
// These classes must be referenced somewhere for their files to not be stripped.
258+
id _ = [[PlaceholderSentryApplication alloc] init];
259+
_ = [[PlaceholderProcessInfoClass alloc] init];
257260

258261
startInvocations++;
259262
startTimestamp = [SentryDependencyContainer.sharedInstance.dateProvider date];

0 commit comments

Comments
 (0)