So I was following a tutorial on YouTube. https://www.youtube.com/watch?v=4ymz6i07DRM&feature=youtu.be
Ive done exactly what he did. And edited a few things because
I see the tutorial you're using involves Storyboards.
Check that you have ticked "Is Initial View Controller" appropriately in the storyboard you're editing. If this is not checked then I'd expect the error you're seeing.