MMDrawerController icon indicating copy to clipboard operation
MMDrawerController copied to clipboard

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

Open ShehanAmarakoonCBA opened this issue 8 years ago • 1 comments

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

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

ShehanAmarakoonCBA avatar Nov 01 '17 04:11 ShehanAmarakoonCBA

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.

JohnTheBastard avatar Nov 01 '17 20:11 JohnTheBastard