We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7389a1a commit 5381f3fCopy full SHA for 5381f3f
Sources/KSCrashRecording/Monitors/KSCrashMonitorContextHelper.m
@@ -26,6 +26,8 @@
26
#define NSAPPLICATION NSClassFromString(@"NSApplication")
27
#endif
28
29
+#if TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_VISION || TARGET_OS_WATCH
30
+
31
static bool isRunningInAppExtension(void)
32
{
33
// From "Information Property List Key Reference" > "App Extension Keys"
@@ -38,6 +40,8 @@ static bool isRunningInAppExtension(void)
38
40
return NSBundle.mainBundle.infoDictionary[@"NSExtension"][@"NSExtensionPointIdentifier"] != nil;
39
41
}
42
43
+#endif
44
45
#if TARGET_OS_IOS || TARGET_OS_TV || TARGET_OS_VISION
46
47
static UIApplication *getUIApplication(void)
0 commit comments