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

Does not conform to protocol #51

Closed
bitdelve opened this issue Mar 2, 2020 · 8 comments
Closed

Does not conform to protocol #51

bitdelve opened this issue Mar 2, 2020 · 8 comments
Labels
question Further information is requested

Comments

@bitdelve
Copy link

bitdelve commented Mar 2, 2020

extension JobDetailsViewController: CalendarDataSource {
func eventsForCalendar() -> [Event] {
return events
}
}

This is the code for the data source, but I get the 'Does not conform to protocol' error. Any thoughts?

@kvyatkovskys
Copy link
Owner

Hi)
Do you need to subscribe to protocol in JobsDetailViewController.
ex. calendar.datasource = self

@bitdelve
Copy link
Author

bitdelve commented Mar 2, 2020

That is there, too. It is really weird, because I created a test project and it works in that, but not in my main project. I have no clue what it could be.

@bitdelve
Copy link
Author

bitdelve commented Mar 2, 2020

@kvyatkovskys This is happening while building, not a runtime error. So even if I hadn't set the delegate I shouldn't see that error. Another error I see is

Candidate has non-matching type '() -> [Event]'

@kvyatkovskys
Copy link
Owner

Can you show me your code?

@bitdelve
Copy link
Author

bitdelve commented Mar 4, 2020

@kvyatkovskys The workaround I found was to just copy the files into my project instead of using the pod. I think there is something messed up with the pod, likely for my project, because I could use the pod in a fresh project and it worked fine. Also worked fine with your example.

@kvyatkovskys kvyatkovskys added the question Further information is requested label Mar 6, 2020
@kvyatkovskys
Copy link
Owner

🤔 so, you just copied the files to project manually? without CocoaPods or Carthage

@bitdelve
Copy link
Author

bitdelve commented Mar 9, 2020

@kvyatkovskys Right. I did find the actual solution, though. I cleared the cocoapods cache and installed the pod again and it worked. So it was an issue on my end.

@kvyatkovskys
Copy link
Owner

Cool)

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

No branches or pull requests

2 participants