Why does iOS have a different implementation for IsPackagedForDistribution()?
And where is the “EpicPackagingMode” key set? The only reference in the engine code I can find is in IOSPlatformMisc.cpp
IOSPlatformMisc.cpp
bool FIOSPlatformMisc::IsPackagedForDistribution()
{
#if !UE_BUILD_SHIPPING
static bool PackagingModeCmdLine = FParse::Param(FCommandLine::Get(), TEXT("PACKAGED_FOR_DISTRIBUTION"));
if (PackagingModeCmdLine)
{
return true;
}
#endif
NSString* PackagingMode = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"EpicPackagingMode"];
return PackagingMode != nil && [PackagingMode isEqualToString : @"Distribution"];
}
GenericPlatformMisc.h
static bool IsPackagedForDistribution()
{
#if UE_BUILD_SHIPPING
return true;
#else
return false;
#endif
}