diff --git a/CHANGELOG.md b/CHANGELOG.md index f717d595b..e38c7e6f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,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)) - feat(nuxt): Set `sendDefaultPii: true` by default ([#1060](https://github.com/getsentry/sentry-wizard/pull/1060)) +- fix(apple): Remove `options.debug: true` from SDK init snippet ([#1096](https://github.com/getsentry/sentry-wizard/pull/1096)) ## 6.5.0 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/ 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/