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.
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.
Head over to the existing Questions & Answers thread and let us know what's up.