Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: 'deallocate(capacity:)' is deprecated #166

Closed
mssun opened this issue Mar 31, 2018 · 2 comments
Closed

error: 'deallocate(capacity:)' is deprecated #166

mssun opened this issue Mar 31, 2018 · 2 comments

Comments

@mssun
Copy link

mssun commented Mar 31, 2018

I'm using Xcode version 9.3 (9E145) to build from Carthage.

Checkouts/OneTimePassword/Sources/Crypto.swift:33:20: error: 'deallocate(capacity:)' is deprecated: Swift currently only supports freeing entire heap blocks, use deallocate() instead
    defer { macOut.deallocate(capacity: hashLength) }
                   ^

** ARCHIVE FAILED **


The following build commands failed:
        CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
        CompileSwift normal arm64
(2 failures)
mattrubin added a commit that referenced this issue Apr 1, 2018
New warnings in Swift 4.1 were breaking the ability to build the library via Carthage. (#166)
@mattrubin mattrubin added this to the 3.1.1 milestone Apr 1, 2018
@mattrubin
Copy link
Owner

OneTimePassword 3.1.1 is now available, and should work with Swift 4.1 and Xcode 9.3. Please let me know if you encounter any more issues.

@mssun
Copy link
Author

mssun commented Apr 1, 2018

It works. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants