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

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

Open
firozkeep opened this issue Jan 19, 2018 · 2 comments

Comments

@firozkeep
Copy link

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.

@hamchapman
Copy link
Contributor

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?

@alexbosworth
Copy link
Contributor

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

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

No branches or pull requests

3 participants