yourkarma / JWT

A JSON Web Token implementation in Objective-C.
MIT License
351 stars 107 forks source link

Error when using KeyExtractor: Use of unresolved identifier 'JWTCryptoKeyExtractor' #136

Closed andriajensen closed 6 years ago

andriajensen commented 7 years ago

New Issue Checklist

Issue Info

Info Value
Platform Name iOS
Platform Version 10.3
CocoaLumberjack Version none
Integration Method Cocoapods
Xcode Version 8.3.3
Repro rate always

Issue Description and Steps

When I use JWTCryptoKeyExtractor in my project, I'm getting the following error:

Use of unresolved identifier 'JWTCryptoKeyExtractor'

There are also a lot of related warnings that come up:

/<module-includes>:1:1: Umbrella header for module 'JWT' does not include header 'JWTAlgorithmESBase.h'
/<module-includes>:1:1: Umbrella header for module 'JWT' does not include header 'JWTAlgorithmNone.h'
/<module-includes>:1:1: Umbrella header for module 'JWT' does not include header 'JWTCryptoKey.h'
/<module-includes>:1:1: Umbrella header for module 'JWT' does not include header 'JWTCryptoKeyExtractor.h'
/<module-includes>:1:1: Umbrella header for module 'JWT' does not include header 'JWTCryptoSecurity.h'

I'm attaching a demo project that illustrates this. The only thing I'm doing in the project is integrating via a pod, and I've added one line of code to the ViewController:

let extractor = JWTCryptoKeyExtractor.publicKeyWithPEMBase64().type

Any idea of a workaround for this?

JWTExtractorTest.zip

andriajensen commented 7 years ago

@lolgear it looks like this is already fixed in master. Can you publish a new pod version to include this fix? I need it as a dependency of a pod I've written, so I will need to fork and create my own spec if not. Podspecs can't point to git URLs, only Podfiles.

andriajensen commented 7 years ago

133 fixed this issue.

lolgear commented 7 years ago

Sure! I could post a new beta version asap.

lolgear commented 7 years ago

137

lolgear commented 7 years ago

@andriajensen it would be nice if you could add demo/tes-case for your specific issue, thanks!

lolgear commented 7 years ago

@andriajensen sorry, I missed! :) I mean previous issue with custom string to data transform. #132

lolgear commented 6 years ago

@andriajensen could it be closed?