2
votes

I have a custom framework (not using pods or carthage). Swift on my mac is 4.0.3. On compiling the project I get the error :

Module compiled with swift 4.0 cannot be imported in Swift 4.0.3

I know this topic has been discussed quite a bit like here. However, in my case the, the framework has been added manually.

1
@Kevinosaurio : Already checked. Removing derived data doesn't help. Also, my Xcode is latest.Nitish
is you Xcode Tools 9.1?Kevinosaurio
@Kevinosaurio : Left with no option other than downloading Xcode 9.0Nitish

1 Answers

2
votes

You need to recompile the framework with swift 4.0.3 before adding it to your project.