From a1a7e63ce32b8e9d9c8e9f7c73382f9dd4a894b1 Mon Sep 17 00:00:00 2001 From: Oprea Alexandru Date: Fri, 2 Feb 2024 08:11:20 +0200 Subject: [PATCH] Converted iOS compile error to Fatal log --- ConfigCat.uplugin | 2 +- Source/ConfigCat/Private/ConfigCatSubsystem.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ConfigCat.uplugin b/ConfigCat.uplugin index fa369d8..9f12c12 100644 --- a/ConfigCat.uplugin +++ b/ConfigCat.uplugin @@ -1,6 +1,6 @@ { "FileVersion": 3, - "VersionName": "1.0.2", + "VersionName": "1.0.3", "EngineVersion": "5.3", "FriendlyName": "ConfigCat", "Description": "ConfigCat is a hosted service for feature flag and configuration management. It lets you decouple feature releases from code deployments.", diff --git a/Source/ConfigCat/Private/ConfigCatSubsystem.cpp b/Source/ConfigCat/Private/ConfigCatSubsystem.cpp index 0d6224b..956d3e9 100644 --- a/Source/ConfigCat/Private/ConfigCatSubsystem.cpp +++ b/Source/ConfigCat/Private/ConfigCatSubsystem.cpp @@ -22,10 +22,6 @@ #include "Wrapper/ConfigCatUser.h" #include "Wrapper/ConfigCatValue.h" -#if PLATFORM_IOS && !FORCE_ANSI_ALLOCATOR -#error "ConfigCat for iOS currently requires "FORCE_ANSI_ALLOCATOR=1" inside your PROJECTNAME.Target.cs" -#endif - using namespace configcat; namespace @@ -283,6 +279,10 @@ bool UConfigCatSubsystem::IsOffline() const void UConfigCatSubsystem::Initialize(FSubsystemCollectionBase& Collection) { +#if PLATFORM_IOS && !FORCE_ANSI_ALLOCATOR + UE_LOG(LogConfigCat, Fatal, TEXT("ConfigCat for iOS currently requires 'FORCE_ANSI_ALLOCATOR=1' inside your PROJECTNAME.Target.cs")); +#endif + const UConfigCatSettings* ConfigCatSettings = GetDefault(); if(!ConfigCatSettings || ConfigCatSettings->SdkKey.IsEmpty()) {