Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module compiled with Swift 4.0 cannot be imported in Swift 4.0.2: #502

Open
ShehanAmarakoonCBA opened this issue Nov 1, 2017 · 1 comment

Comments

@ShehanAmarakoonCBA
Copy link

I'm using xcode 9.1. This error is coming.

Module compiled with Swift 4.0 cannot be imported in Swift 4.0.2:

@JohnTheBastard
Copy link

JohnTheBastard commented Nov 1, 2017

This happens if you try to use a precompiled framework (e.g. any swift modules installed with carthage). They need to be recompiled when you upgrade Xcode. I haven't seen this problem with cocoapods, but maybe it's possible with some custom settings. MMDrawerController is written in ObjectiveC and doesn't support carthage, so it seems unlikely to be the source of your problem.

My recommendation is to run carthage update. If that doesn't fix your problem, try running the following commands:

> rm -rf  ~/Library/Developer/Xcode/DerivedData
> rm -rf "${HOME}/Library/Caches/CocoaPods"
> rm -rf "`pwd`/Pods/"
> pod install

Good luck.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants