Description

Game was rejected from the Mac App Store for attempting gain read/write access to directories which weren't permitted.

Reporter of issue has proposed a possible fix on his AnswerHub post:

These two lines need to be removed or commented out in order to stop the "../../../Engine/Config/Redist" deletions.

IFileManager::Get().Delete(*FString::Printf(TEXT("%sNoRedist/Base%s.ini"), EngineConfigDir, InBaseIniName), false, true, true); IFileManager::Get().DeleteDirectory(*FString::Printf(TEXT("%sNoRedist"), EngineConfigDir), false, false);

Then in: Engine/Source/Runtime/Core/Private/Misc/Paths.cpp

This line: return FPaths::GameDir() + TEXT("Intermediate/");

needs to be changed to this: return GameUserDir() + TEXT("Intermediate/");

Those lines of code don’t really hurt the game, but Apple's rules don’t allow writing to or deleting directories outside of the sandbox. So the code must be changed to get a game approved for the Mac App Store.

Steps to Reproduce

1. Package a game for Mac
2. Upload it to the Mac App Store

Expected: The project should upload without a problem.
Result: The project is declined due to accessing directories which aren't permitted.

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

0
Login to Vote

Fixed
ComponentUE - Platform - Mac
Affects Versions4.9.24.104.10.2
Target Fix4.14
Fix Commit3163479
CreatedJan 20, 2016
ResolvedDec 1, 2016
UpdatedApr 27, 2018