Ok I just deleted the Saved folder, Intermediate folder and Binaries folder in the project folder. There’s no Derived Data Cache folder, I deleted Xcode’s derived data folder.
This is a C++ project and I had to run refresh Xcode project to see the schemes again in Xcode.
After packaging again I got exactly the same error.
I created a new C++ project and tried to package it and got the same error.
I created a new BluePrint project and it packages correctly.
I’m using the Epic Launcher.