I am trying to build my project with Xcode12, and I am running into this error:
<unknown>:0: error: module compiled with Swift 5.2.4 cannot be imported by the Swift 5.3 compiler: /Users/zs/Documents/CJ/branches/CJ-400/SimpleList/Carthage/Build/iOS/PhoneNumberKit.framework/Modules/PhoneNumberKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule
Not sure how to resolve this. I've tried:
cleaning the build directory and building again
cleaning build dir, plus deleting DerivedData, and restarting Xcode and building again
running 'carthage update PhoneNumberKit --platform iOS', and doing another clean build
changing the Xcode command-line tool to Xcode 12, and building again