-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 5.2.4 cannot be imported by the Swift 5.3 compiler #683
Comments
Facing same issue, I've tried to put |
@bouchja1 Ok, I think I've found a way to build, I've done the following steps and it's working:
Hope that's going to help ! |
Thanks! This worked also for me. You probably know this but there is an alias to clear "Pods" directory. Instead of deleting the whole folder you can use the command:
And I am stopping to be a "smart" guy :D |
@bouchja1 Haha no problem, I know that command but I'm not using it quite often it's why I'm doing it in the old basic way ^^ |
In case you build the app using the |
@bouchja1 thanks very much , beacusn help me |
@magrinj thank you ㅠㅜㅠㅜ love you🥺 |
Description
I have upgraded XCode version to 12.0 and suddenly it is not possible to build the project because there is an error shown:
AnimationViewManagerModule.swift:5:8: error: module compiled with Swift 5.2.4 cannot be imported by the Swift 5.3 compiler
Steps to Reproduce
Expected behavior: [What you expected to happen]
Actual behavior: [What actually happened]
/Users/janbouchner/cfhero/cfhero-react/node_modules/lottie-react-native/src/ios/LottieReactNative/AnimationViewManagerModule.swift:5:8: error: module compiled with Swift 5.2.4 cannot be imported by the Swift 5.3 compiler: /Users/janbouchner/cfhero/cfhero-react/ios/build/CFHero/Build/Products/Debug-iphonesimulator/lottie-ios/Lottie.swiftmodule/x86_64-apple-ios-simulator.swiftmodule
import Lottie
^
** BUILD FAILED **
The following build commands failed:
CompileSwift normal x86_64 /Users/janbouchner/cfhero/cfhero-react/node_modules/lottie-react-native/src/ios/LottieReactNative/AnimationViewManagerModule.swift
CompileSwift normal x86_64 /Users/janbouchner/cfhero/cfhero-react/node_modules/lottie-react-native/src/ios/LottieReactNative/ContainerView.swift
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
(3 failures)
Versions
The text was updated successfully, but these errors were encountered: