I cannot import swift 4 module's with Xcode 9.2

157 Views Asked by At

I have Xcode 9.2 and I am thinking I automatically have Swift 4.1. So I tried to import some modules like:

import Hero
import EGFormValidator

but it gives me an error saying it does not recognize those modules. How can I access Swift 4.1 on my Xcode?

enter image description here

1

There are 1 best solutions below

0
On

You are probably using CocoaPods. Try to clean and then rebuild your project.

However make sure that you use the .xcworkspace and not the .xcodeproj file!