failed to get module ‘Swift’ from AST context

Hi ,

 

I am new in Swift and Im working on the command line,however I am getting next error message when I try to do ‘import Foundation’

 

Error Message:

 

  1> import Foundation

Error in auto-import:

failed to get module ‘Swift’ from AST context

 

I modified the Xcode path as next:

 

sudo xcode-select –switch /Library/Developer/CommandLineTools

 

Any suggestions?

Powered by WPeMatico

About

You may also like...

Comments are closed.