Problems running sample app ("module compiled with Swift 4.2.1 cannot be imported by the Swift 5.0.1")
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?