Skip to content

Add Xcode 9.2 compatibility #4

@crossle

Description

@crossle

clone the master branch, run pod install

[!] Unable to find a target named `LibSignalProtocolSwift iOS`, did find `SignalProtocol iOS`, `SignalProtocol macOS`, `SignalProtocol tvOS`, `SignalProtocol watchOS`, and `SignalProtocol Tests`.

Other compile error, UnsafeMutableRawPointer allocate and deallocate can not compile on Xcode 9.2
should use this

let ptr = UnsafeMutableRawPointer.allocate(bytes: dataLength, alignedTo: MemoryLayout<UInt8>.alignment)
        defer { ptr.deallocate(bytes: dataLength, alignedTo: MemoryLayout<UInt8>.alignment) }

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions