square / Valet

Valet lets you securely store data in the iOS, tvOS, or macOS Keychain without knowing a thing about how the Keychain works. It’s easy. We promise.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Module compiled with Swift 5.2.2 cannot be imported by the Swift 5.3 compiler

exofthalmus opened this issue · comments

Hi!
Since updating to the newest X-Code IDE i'm getting the following error:

/Users/flosse/Projekte/ent/SpesenApp/SpesenApp/SpesenApp/Core/RestRequestServiceInterceptor.swift:11:8: Module compiled with Swift 5.2.2 cannot be imported by the Swift 5.3 compiler: /Users/flosse/Projekte/ent/SpesenApp/SpesenApp/Carthage/Build/iOS/Valet.framework/Modules/Valet.swiftmodule/arm64-apple-ios.swiftmodule

Tried a few things but nothing worked. What ca i do? I'm using carthage with following command:
github "Square/Valet"

Thx and greetings Chris

@exofthalmus this looks like an issue with Carthage, based on their documentation:

Carthage will check to make sure that downloaded Swift (and mixed Objective-C/Swift) frameworks were built with the same version of Swift that is in use locally. If there is a version mismatch, Carthage will proceed to build the framework from source. If the framework cannot be built from source, Carthage will fail.

It looks like Carthage should be building Valet from source rather than straight failing. I don't know enough about Carthage's Swift support to be able to assist you further. Consider filing an issue with Carthage after trying their troubleshooting steps?

No worries! Dependency managers are hard – I've certainly struggled with them myself. Good luck!