EllipticCurveKeyPair icon indicating copy to clipboard operation
EllipticCurveKeyPair copied to clipboard

deinitialize() and deallocate() causing Compiler Error in SHA256.swift

Open SerialForBreakfast opened this issue 6 years ago • 6 comments

Installed via cocoapods and got these errors when building:

'deinitialize()' is unavailable: the default argument to deinitialize(count:) has been removed, please specify the count explicitly 'deallocate(capacity:)' is unavailable: Swift currently only supports freeing entire heap blocks, use deallocate() instead

'deinitialize()' was obsoleted in Swift 5.0 'deallocate(capacity:)' was obsoleted in Swift 5.0

SerialForBreakfast avatar May 04 '19 18:05 SerialForBreakfast

Works fine when using Swift 4.2 in the Build Settings.

SerialForBreakfast avatar May 04 '19 18:05 SerialForBreakfast

Yes, that's right. Fixed in master. If you point directly to commit or branch it works in swift 5

hfossli avatar May 04 '19 19:05 hfossli

Thanks for taking the time to report this. Keeping it open since I forgot to publish new release

hfossli avatar May 04 '19 19:05 hfossli

Still no release, it's been a month

barrcodes avatar Jun 11 '19 20:06 barrcodes

I am so sorry. The past months have been crazy hectic both on a personal level and professional level. I am triaging every day in order to keep most important things floating. If someone wants push access to fix what's needed I'll be happy to give. Otherwise I will come back to this issue asap (hopefully this week). Thanks for being patient. 🙌

hfossli avatar Jun 11 '19 22:06 hfossli

Hey @hfossli, first of all thanks for this library! Any hope to have the Swift5 fix released? 🙏🏼

fmessina avatar Dec 03 '19 12:12 fmessina