This error occurs when the Swift version is not specified under Swift Compiler Languge for your project.
All you need to do is, Navigate to Build Settings -> Swift Compiler Language, from the drop down specify the Swift version.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.