Module Compiled with Swift 3.0.2 cannot be Imported in Swift 3.1

Asked

Viewed 142 times

1

When creating a project and installing the cocoapods and the still, when running it only gives this error and not build in the project, even empty only importing the still

Module Compiled with Swift 3.0.2 cannot be Imported in Swift 3.1

I have tried several topics but without success. if anyone has ever been through it, help me I’m on time for this mistake

  • Uninstall Xcode beta and install version 8.1 Swift 3.0.2

  • Version 8.3 (8E162) not beta @Leodabus

  • then expects to exit the updates of the frameworks in question

  • @Leodabus I am trying to use the Alamofire, intalando via cocoapods. You indicate me some so that I can replace?

  • 1

    Urlsession native to Swift

1 answer

1

The problem is because the Alamofire module is compiled in version 3.0.2 and now you try to compile your project in version 3.1, which prevents the module from being imported into the project. For more details, click here!

I was having the same problem, including with the same module Alamofire installed via POD. Just clean the project did not solve for me. But I was able to fix the problem as follows:

  1. i removed the Alamofire from the project

  2. I cleaned the project (CMD+SHIFT+K)

  3. updated the POD (pod update), and

  4. I added Alamofire back to the podfile and had it installed.

I hope it helps you.

  • I removed the still and used the same Urlsession, I had not used before because I was not able to use "basic Authentication" but now that I got it, I abandoned the frameworks. But Thanks!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.