Skip to content

Commit 5381f3f

Browse files
author
Robert Bartoszewski
committed
Fixed macOS warnings
1 parent 7389a1a commit 5381f3f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/KSCrashRecording/Monitors/KSCrashMonitorContextHelper.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
#define NSAPPLICATION NSClassFromString(@"NSApplication")
2727
#endif
2828

29+
#if TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_VISION || TARGET_OS_WATCH
30+
2931
static bool isRunningInAppExtension(void)
3032
{
3133
// From "Information Property List Key Reference" > "App Extension Keys"
@@ -38,6 +40,8 @@ static bool isRunningInAppExtension(void)
3840
return NSBundle.mainBundle.infoDictionary[@"NSExtension"][@"NSExtensionPointIdentifier"] != nil;
3941
}
4042

43+
#endif
44+
4145
#if TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_VISION
4246

4347
static UIApplication *getUIApplication(void)

0 commit comments

Comments
 (0)