kylef / JSONWebToken.swift

Swift implementation of JSON Web Token (JWT).
http://jwt.io
BSD 2-Clause "Simplified" License
763 stars 225 forks source link

it can't be used in Swift4 #85

Closed gongyucheng closed 7 years ago

kylef commented 7 years ago

Can you share a bit more info such as the platform or some build error?

The Xcode project attached builds find with Swift 4.

JanBrinker commented 7 years ago

I'm interested in this aswell. Basically it's the dependency to CryptoSwift. When compiling my project with Xcode 9 I don't get any errors in the JSONWebToken pod but in CryptoSwift:

bildschirmfoto 2017-09-22 um 11 11 28

I think the current CryptoSwift (0.7.2) does support Swift 4, so I guess only the dependency needs to be updated and a new pod version released. Could you do that @kylef ? :)

kylef commented 7 years ago

@JanBrinker Are you using JSONWebToken 2.2.0? CryptoSwift shouldn't be used when building in Xcode.

JanBrinker commented 7 years ago

I'm terribly sorry to have bothered, you were completely right. Things look well now :) 👍

kylef commented 7 years ago

That's great to hear updating solve this for you.

Thanks for reporting here @JanBrinker.