Cocoanetics / DTFoundation

Standard toolset classes and categories
BSD 2-Clause "Simplified" License
802 stars 237 forks source link

Core source errors and DTASN1Parser #118

Closed rat-moonshine closed 5 years ago

rat-moonshine commented 6 years ago

Hi there!

I need some help with DTASN1Parser usage.

I became interested to this after reading how conveniently DTASN1Parser can decode certificates (https://www.cocoanetics.com/2012/02/parsing-asn-1-for-certificates-and-pleasure/).

I want this to be added in my Swift 3 iOS app, and so I copied complete 'Core' folder to my project. (Do you have any pod install?) Once I copied the 'Core' folder I have been reported with tons of errors by XCode:

screenshot

How can I fixed these errors and able to use DTASN1Parser in my app (?) Is there any working demo available for DTASN1Parser (?)

Any help would be good.

Thanks!

odrobnik commented 5 years ago

If you want to use the source files for the parser by themselves you have to make a lot of changes. Better to to use the framework as a cocoa pod or git submodule.