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..a43c4c97728 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. */ @@ -141,7 +140,6 @@ class PrivateSentrySDKOnlyTests: XCTestCase { XCTAssertEqual(payload?["platform"] as? String, "cocoa") XCTAssertNotNil(payload?["debug_meta"]) XCTAssertNotNil(payload?["device"]) - XCTAssertNotNil(payload?["measurements"]) XCTAssertNotNil(payload?["profile_id"]) let profile = payload?["profile"] as? NSDictionary XCTAssertNotNil(profile?["thread_metadata"]) @@ -149,6 +147,9 @@ class PrivateSentrySDKOnlyTests: XCTestCase { XCTAssertNotNil(profile?["stacks"]) XCTAssertNotNil(profile?["frames"]) } + #endif + + #if os(iOS) || os(tvOS) || targetEnvironment(macCatalyst) func testIsFramesTrackingRunning() { XCTAssertFalse(PrivateSentrySDKOnly.isFramesTrackingRunning)