matthewpalmer / Locksmith

A powerful, protocol-oriented library for working with the keychain in Swift.
MIT License
2.92k stars 266 forks source link

Not able to build with carthage #203

Open ghost opened 5 years ago

ghost commented 5 years ago

Hi, I upadated my Mac os to 10.13.6 and updated my Xcode to 10.1. After that when I tried to build Xcode gave error "Module Locksmith compiled with swift 4.0.3 can not be imported by swift 4.2 compiler". So I tried to fetch and build latest Locksmith version using "Carthage update" but I got "The file “Locksmith.framework” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/Users/xxxxxxxx/Library/Caches/org.carthage.CarthageKit/DerivedData/Locksmith/4.0.0/Build/Products/Release-appletvos/Locksmith.framework, NSUnderlyingError=0x7f8bcf2ce610 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

Let me know if I'm doing anything wrong from my side.

RobertoMachorro commented 5 years ago

It builds just fine for iOS at my end, but blows up with macOS:

Building scheme "Locksmith iOS" in Locksmith.xcworkspace Building scheme "Locksmith OS X" in Locksmith.xcworkspace Build Failed Task failed with exit code 65:

In the build log file I noticed this:

error: SWIFT_VERSION '3.0' is unsupported, supported versions are: 4.0, 4.2, 5.0. (in target 'Locksmith OS X')

It's possible that someone hasn't updated macOS' build to use a newer Swift. I'm going to checkout the code and give it a try. If it works, I'll do a pull request.

EDIT/UPDATE: I updated to Swift 5 and macOS 10.11 - it builds and passes all tests. I checked to see if someone else may have already done a Pull Request with this and here it is #210 - project may be dead though...