pusher/libPusher

Getting this error. "Value of type 'PTPusherPrivateChannel' has no member 'bind'"

Opened this issue · 2 comments

I have moved from version 1.6.1 to 1.6.3 and compiler is showing this
Value of type 'PTPusherPrivateChannel' has no member 'bind'

When trying to bind to event with :
channel = pusherClient.subscribe(toPrivateChannelNamed:"channel-name")
channel?.bind(toEventNamed: "event-name", handleWith: { event in // Getting error in this line

Let me know how it can be fixed. The same code was working with 1.6.1.

Thanks.

I thought that had been fixed, as you can see here: #168

It looks like you're using Swift - what does your bridging header look like?

I see this issue - workaround is to add #import <Pusher/PTPusherEventDispatcher.h> to the bridging header

My bridging header includes #import <Pusher/Pusher.h>

Podfile targets: pod 'libPusher', '~> 1.6.3'

Platform: platform :ios, '11.3'

CocoaPods version 1.5.3 on High Sierra