Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Converted iOS compile error to Fatal log #16

Merged
merged 1 commit into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ConfigCat.uplugin
Original file line number Diff line number Diff line change
@@ -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.",
Expand Down
8 changes: 4 additions & 4 deletions Source/ConfigCat/Private/ConfigCatSubsystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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<UConfigCatSettings>();
if(!ConfigCatSettings || ConfigCatSettings->SdkKey.IsEmpty())
{
Expand Down
Loading