diff --git a/Sources/Sentry/include/HybridPublic/PrivateSentrySDKOnly.h b/Sources/Sentry/include/HybridPublic/PrivateSentrySDKOnly.h index 086beeaf8eb..79674c49cba 100644 --- a/Sources/Sentry/include/HybridPublic/PrivateSentrySDKOnly.h +++ b/Sources/Sentry/include/HybridPublic/PrivateSentrySDKOnly.h @@ -2,7 +2,6 @@ #import "SentryAppStartMeasurement.h" #import "SentryEnvelope.h" #import "SentryEnvelopeItemType.h" -#import "SentryProfilingConditionals.h" #import "SentryScreenFrames.h" @class SentryDebugMeta, SentryAppStartMeasurement, SentryScreenFrames, SentryOptions, diff --git a/Tests/SentryTests/PrivateSentrySDKOnlyTests.swift b/Tests/SentryTests/PrivateSentrySDKOnlyTests.swift index 96e6ee97aa6..83cc2bd0c5e 100644 --- a/Tests/SentryTests/PrivateSentrySDKOnlyTests.swift +++ b/Tests/SentryTests/PrivateSentrySDKOnlyTests.swift @@ -120,8 +120,7 @@ class PrivateSentrySDKOnlyTests: XCTestCase { XCTAssertEqual(PrivateSentrySDKOnly.options.enabled, true) } - #if os(iOS) || os(tvOS) || targetEnvironment(macCatalyst) - + #if !os(tvOS) && !os(watchOS) /** * Smoke Tests profiling via PrivateSentrySDKOnly. Actual profiling unit tests are done elsewhere. */ @@ -149,6 +148,9 @@ class PrivateSentrySDKOnlyTests: XCTestCase { XCTAssertNotNil(profile?["stacks"]) XCTAssertNotNil(profile?["frames"]) } + #endif + + #if os(iOS) || os(tvOS) || targetEnvironment(macCatalyst) func testIsFramesTrackingRunning() { XCTAssertFalse(PrivateSentrySDKOnly.isFramesTrackingRunning)