UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
IOSPlatformCrashContext.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6#include "Misc/Guid.h"
7
8//Forward Declarations
10#if !PLATFORM_TVOS
11@class PLCrashReporter;
12#endif
13
14/*------------------------------------------------------------------------------
15 FIOSApplicationInfo - class to contain all state for crash reporting that is unsafe to acquire in a signal.
16 ------------------------------------------------------------------------------*/
17
67
69{
72
74 void CopyMinidump(char const* OutputPath, char const* InputPath) const;
75
77 void GenerateInfoInFolder(char const* const InfoFolder, bool bIsEnsure = false) const;
78
80 void GenerateCrashInfo() const;
81
83 void GenerateEnsureInfo() const;
84
86 FString CreateCrashFolder() const;
87
88 static void SetGenerateScreenshotFunc(const TFunction<void(char const* const InfoFolder)>& InGenerateScreenshotFunc);
89
90private:
92 virtual void AddPlatformSpecificProperties() const;
93
94 static TFunction<void(char const* const InfoFolder)> GenerateScreenshotFunc;
95};
96
97//Single global FIOSApplicationInfo to store our App's information
99
OODEFFUNC typedef void(OODLE_CALLBACK t_fp_OodleCore_Plugin_Free)(void *ptr)
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
ECrashContextType
Definition GenericPlatformCrashContext.h:112
FIOSCrashContext FPlatformCrashContext
Definition IOSPlatformCrashContext.h:100
FIOSApplicationInfo GIOSAppInfo
Definition IOSPlatformCrashContext.cpp:22
Definition IOSMallocZone.h:42
Definition AndroidPlatformMisc.h:14
Definition ApplePlatformCrashContext.h:15
Definition Guid.h:109
Definition IOSPlatformCrashContext.h:23
char PLCrashReportPath[PATH_MAX+1]
Definition IOSPlatformCrashContext.h:39
FString MachineModel
Definition IOSPlatformCrashContext.h:49
FString XcodePath
Definition IOSPlatformCrashContext.h:61
static FIOSMallocCrashHandler * CrashMalloc
Definition IOSPlatformCrashContext.h:65
static FString TemporaryCrashReportFolder()
Definition IOSPlatformCrashContext.cpp:385
FString ParentProcess
Definition IOSPlatformCrashContext.h:53
void Init()
Definition IOSPlatformCrashContext.cpp:279
static FString TemporaryCrashReportName()
Definition IOSPlatformCrashContext.cpp:408
char AppNameUTF8[PATH_MAX+1]
Definition IOSPlatformCrashContext.h:36
~FIOSApplicationInfo()
Definition IOSPlatformCrashContext.cpp:364
FString PrimaryGPU
Definition IOSPlatformCrashContext.h:57
FString LCID
Definition IOSPlatformCrashContext.h:54
char OSVersionUTF8[PATH_MAX+1]
Definition IOSPlatformCrashContext.h:40
FString BranchBaseDir
Definition IOSPlatformCrashContext.h:56
char MachineName[PATH_MAX+1]
Definition IOSPlatformCrashContext.h:41
char MachineCPUString[PATH_MAX+1]
Definition IOSPlatformCrashContext.h:42
static PLCrashReporter * CrashReporter
Definition IOSPlatformCrashContext.h:63
bool bIsSandboxed
Definition IOSPlatformCrashContext.h:34
FString ExecutableName
Definition IOSPlatformCrashContext.h:58
int32 NumCores
Definition IOSPlatformCrashContext.h:35
char CrashReportPath[PATH_MAX+1]
Definition IOSPlatformCrashContext.h:38
FString AppName
Definition IOSPlatformCrashContext.h:44
FString AppBundleID
Definition IOSPlatformCrashContext.h:45
FString BiosRelease
Definition IOSPlatformCrashContext.h:50
FString MachineUUID
Definition IOSPlatformCrashContext.h:48
char AppLogPath[PATH_MAX+1]
Definition IOSPlatformCrashContext.h:37
NSOperatingSystemVersion OSXVersion
Definition IOSPlatformCrashContext.h:59
FString OSVersion
Definition IOSPlatformCrashContext.h:46
FString OSBuild
Definition IOSPlatformCrashContext.h:47
FString BiosRevision
Definition IOSPlatformCrashContext.h:51
FString CommandLine
Definition IOSPlatformCrashContext.h:55
FGuid RunUUID
Definition IOSPlatformCrashContext.h:60
FString BiosUUID
Definition IOSPlatformCrashContext.h:52
static FGuid RunGUID()
Definition IOSPlatformCrashContext.cpp:375
FString AppPath
Definition IOSPlatformCrashContext.h:43
Definition IOSPlatformCrashContext.h:69