Have you got any platforms downloaded in Xcode > Settings... > Components?
Can you show us the #Preview macro you're using?
What version of Xcode are you on?
Topic:
Developer Tools & Services
SubTopic:
Xcode