From c11a0abc0a79f232420a1f312b61f61671e749f7 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 13 Oct 2025 18:36:38 +0000 Subject: [PATCH 1/3] ref(apple): Remove debug flags from Apple SDK setup snippets Removes default `options.debug` from Swift and Objective-C snippets per getsentry/sentry-wizard#1092 to avoid enabling debug by default. --- src/apple/templates.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/apple/templates.ts b/src/apple/templates.ts index c4ae130ea..21ae6c629 100644 --- a/src/apple/templates.ts +++ b/src/apple/templates.ts @@ -34,7 +34,6 @@ export const scriptInputPath = export function getSwiftSnippet(dsn: string, enableLogs: boolean): string { let snippet = ` SentrySDK.start { options in options.dsn = "${dsn}" - options.debug = true // Enabled debug when first installing is always helpful // Adds IP for users. // For more information, visit: https://docs.sentry.io/platforms/apple/data-management/data-collected/ @@ -72,7 +71,6 @@ export function getSwiftSnippet(dsn: string, enableLogs: boolean): string { export function getObjcSnippet(dsn: string, enableLogs: boolean): string { let snippet = ` [SentrySDK startWithConfigureOptions:^(SentryOptions * options) { options.dsn = @"${dsn}"; - options.debug = YES; // Enabled debug when first installing is always helpful // Adds IP for users. // For more information, visit: https://docs.sentry.io/platforms/apple/data-management/data-collected/ From 6ad8ecae4b00c1f2cb1b87af033dd367cf258199 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Mon, 13 Oct 2025 18:40:27 +0000 Subject: [PATCH 2/3] ref(apple): Update Apple snippet tests to remove debug flags Adjusts unit tests to reflect removal of default debug settings in Swift and Objective-C snippets per #1092. --- test/apple/code-tools.test.ts | 3 --- test/apple/templates.test.ts | 4 ---- 2 files changed, 7 deletions(-) diff --git a/test/apple/code-tools.test.ts b/test/apple/code-tools.test.ts index ef370fe1a..68a089baf 100644 --- a/test/apple/code-tools.test.ts +++ b/test/apple/code-tools.test.ts @@ -34,7 +34,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { SentrySDK.start { options in options.dsn = "https://example.com/sentry-dsn" - options.debug = true // Enabled debug when first installing is always helpful // Adds IP for users. // For more information, visit: https://docs.sentry.io/platforms/apple/data-management/data-collected/ @@ -93,7 +92,6 @@ const validAppDelegateObjCWithSentry = `@import Sentry; - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [SentrySDK startWithConfigureOptions:^(SentryOptions * options) { options.dsn = @"https://example.com/sentry-dsn"; - options.debug = YES; // Enabled debug when first installing is always helpful // Adds IP for users. // For more information, visit: https://docs.sentry.io/platforms/apple/data-management/data-collected/ @@ -148,7 +146,6 @@ struct TestApp: App { init() { SentrySDK.start { options in options.dsn = "https://example.com/sentry-dsn" - options.debug = true // Enabled debug when first installing is always helpful // Adds IP for users. // For more information, visit: https://docs.sentry.io/platforms/apple/data-management/data-collected/ diff --git a/test/apple/templates.test.ts b/test/apple/templates.test.ts index 602f4636d..ab5bffdf5 100644 --- a/test/apple/templates.test.ts +++ b/test/apple/templates.test.ts @@ -127,7 +127,6 @@ fi expect(snippet).toBe( ` SentrySDK.start { options in options.dsn = "test-dsn" - options.debug = true // Enabled debug when first installing is always helpful // Adds IP for users. // For more information, visit: https://docs.sentry.io/platforms/apple/data-management/data-collected/ @@ -161,7 +160,6 @@ fi expect(snippet).toBe( ` SentrySDK.start { options in options.dsn = "test-dsn" - options.debug = true // Enabled debug when first installing is always helpful // Adds IP for users. // For more information, visit: https://docs.sentry.io/platforms/apple/data-management/data-collected/ @@ -200,7 +198,6 @@ fi expect(snippet).toBe( ` [SentrySDK startWithConfigureOptions:^(SentryOptions * options) { options.dsn = @"test-dsn"; - options.debug = YES; // Enabled debug when first installing is always helpful // Adds IP for users. // For more information, visit: https://docs.sentry.io/platforms/apple/data-management/data-collected/ @@ -234,7 +231,6 @@ fi expect(snippet).toBe( ` [SentrySDK startWithConfigureOptions:^(SentryOptions * options) { options.dsn = @"test-dsn"; - options.debug = YES; // Enabled debug when first installing is always helpful // Adds IP for users. // For more information, visit: https://docs.sentry.io/platforms/apple/data-management/data-collected/ From f15a351442dedd17f360d34df41b55b48b85c17b Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Tue, 14 Oct 2025 10:28:40 +0200 Subject: [PATCH 3/3] changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bfb98ab6f..e3f161784 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ - feat(nextjs): Update turbopack warning ([#1089](https://github.com/getsentry/sentry-wizard/pull/1089)) - feat(nextjs): Set `sendDefaultPii: true` by default ([#1052](https://github.com/getsentry/sentry-wizard/pull/1052)) - +- fix(apple): Remove `options.debug: true` from SDK init snippet ([#1096](https://github.com/getsentry/sentry-wizard/pull/1096)) ## 6.5.0