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

init with Header method not found in Fremework. When i integrated using podfile #95

Closed
srinathz opened this issue Jun 8, 2018 · 2 comments

Comments

@srinathz
Copy link

srinathz commented Jun 8, 2018

Hi, I integrated the EventSource pod using

pod 'EventSource'

But i did not find init with header method

public init(url: String, headers: [String : String] = [:]) {} in the framework. But i could see that method in sample app which you provided. Currently using EventSource (1.0.4). Am i using correct version ? where else going wrong?

@vpdn
Copy link

vpdn commented Oct 1, 2018

The current podspec on CocoaPods is 2.0.0. It seems 2.1.0 has not been pushed.

You could point the podspec to the repo directly.

pod "IKEventSource", :git => "https://github.com/inaka/EventSource"

The generated framework is called IKEventSource so you'll need to import that (import IKEventSource) instead of EventSource.

@andresinaka
Copy link
Contributor

Version 3.0 is correctly working with CocoaPods. Tested it and seems to be fine.
As @vpdn mentions import IKEventSource

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