If there is a way to evolve Pokemon without trading them in Ultra Sun, please put an answer.
If you need to trade a Pokemon to evolve it, then that's what you have to do. No workarounds.