Skip to content
This repository has been archived by the owner on Nov 11, 2021. It is now read-only.

Problems running sample app ("module compiled with Swift 4.2.1 cannot be imported by the Swift 5.0.1") #15

Open
jonassvalin opened this issue Jun 10, 2019 · 0 comments

Comments

@jonassvalin
Copy link

Actions
npm install
cd ios && pod install && cd ..
react-native run-ios

Behaviour
react-native run-ios fails with error message:
/Users/user/Documents/git/onfido-sdk-react-native-sample-app/ios/ReactNativeSampleApp/OnfidoSDK.swift:10:8: module compiled with Swift 4.2.1 cannot be imported by the Swift 5.0.1 compiler: /Users/user/Documents/git/onfido-sdk-react-native-sample-app/ios/Pods/Onfido/Onfido.framework/Modules/Onfido.swiftmodule/x86_64.swiftmodule

Expected behaviour
run-ios should successfully compile and run example project

Versions
XCode - 10.2

Comments
Hi onfido. It seems like there's another breaking change in the latest version of XCode that gives the above error. I have tried to upgrade the onfid ios-sdk version to fix it, but there seems to be compatibility issues there as well. Are you hoping to update the sample app anytime soon?

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

No branches or pull requests

1 participant