Actually, 2 ways:
Download Xcode 10.x from Developer website, try multiple versions. Automatically migration.
Change Swift version to 4 or 5 in Project Build Settings. Then manually fix all the errors.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: