Why won’t my UWP game load on Xbox or PC?

I’ve packaged a game for UWP, it deploys to my Xbox, but when I start the game, it stays on the splash screen, and then proceeds to close, saying that it took too long to load and to try again. I am running the game in game mode, I’ve also tried running it in app mode, and that doesn’t work either. I made a separate project, that didn’t work. I deactivated and reactivated developer mode on my Xbox. Nothing works! Please help me.