I managed to find the solution, I just needed to delete one of the emulators listed on Xcode (like, for example, the iPhone 8 Plus), then tried again, and it works now.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: