LibSignalProtocolSwift icon indicating copy to clipboard operation
LibSignalProtocolSwift copied to clipboard

Value of type 'UnsafeMutablePointer<_>' has no member 'dataPtr'

Open ankathiriya opened this issue 5 years ago • 7 comments

I just create new project and install pod "pod 'LibSignalProtocolSwift'" after successfully install I try to build project but I'm getting this issue.

My Xcode version is 10.1 and I'm complied project with swift 4.2. Screenshot 2019-06-24 at 11 04 06 PM

Looking forward to solution, Thanks

ankathiriya avatar Jun 24 '19 17:06 ankathiriya

I don't know what went wrong with your pods, but if you need a quick fix you can use keyPtr.baseAddress!.assumingMemoryBound(to: UInt8.self) instead of keyPtr.dataPtr.

bxem44 avatar Jun 25 '19 06:06 bxem44

ohk let me try

ankathiriya avatar Jun 25 '19 06:06 ankathiriya

Screenshot 2019-06-25 at 12 11 37 PM still its not working :(

ankathiriya avatar Jun 25 '19 06:06 ankathiriya

Hmm try to call pod update instead of pod install to make sure Curve25519 version 1.1 is installed. dataPtr was introduced in version 1.1. Let me know if this works.

bxem44 avatar Jun 25 '19 06:06 bxem44

Yes sure let me try

ankathiriya avatar Jun 25 '19 06:06 ankathiriya

@BaranEm still I'm facing same issue could you please check. Screenshot 2019-06-27 at 6 06 10 PM

ankathiriya avatar Jun 27 '19 12:06 ankathiriya

That's strange. Try to remove Cocoapods from your project and reintegrate it.

bxem44 avatar Jun 28 '19 06:06 bxem44