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

Redundant conformance of 'RLMResults' to protocol 'SequenceType' on RealmChartsUtils #1329

Closed
hernanmn opened this issue Aug 17, 2016 · 5 comments

Comments

@hernanmn
Copy link

Hi

Thanks for your support, I am using the last version of Xcode, so I needed to embebed source code, when I tried to compile I got the error mentioned. and also

Redundant conformance of 'RLMArray' to protocol 'SequenceType'

Both errors at RealmChartUtils.swift

Thanks in advance for your support

@liuxuan30
Copy link
Member

liuxuan30 commented Aug 22, 2016

are you saying iOS 10 and xcode 8 beta?
#1269 short answer: if you are testing iOS 10, remove realm

If not, should be your env issue.

@danielgindi
Copy link
Collaborator

It actually seems like RLMArray already has conformance to SequenceType in its newer version, while the older one didn't. I've added it in an extension (RealmChartUtils.swift)

I'll update to latest Realm and fix this.

In the meantime - let's keep this open

@danielgindi danielgindi reopened this Aug 22, 2016
@liuxuan30
Copy link
Member

oops, I was thinking the swift 3.0, SequenceType is changed to Sequence I remember

@danielgindi
Copy link
Collaborator

Solved.
RLMArray does not conform to SequenceType, but our private extension has probably collided with something in the beta version of Swift 3.0.
I've removed the extension, and used an enumerator locally.

@liuxuan30
Copy link
Member

liuxuan30 commented Sep 18, 2016

@danielgindi I also had a commit #1414 in swift 3.0 branch to conform to new Sequence type. However still need Realm to release on swift 3.0

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