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

Cannot assign value of type 'EnumeratedSequence<[Key]>.Iterator' to type 'EnumeratedSequence<IndexingIterator<Array<Key>>>.Iterator' #444

Closed
palpatim opened this issue Jan 29, 2019 · 1 comment

Comments

@palpatim
Copy link

Describe the bug

Building Apollo with Xcode 10.2 beta generates an error:

/path/to/project/apollo-ios/Sources/Apollo/Collections.swift:65:42: Cannot assign value of type 'EnumeratedSequence<[Key]>.Iterator' to type 'EnumeratedSequence<IndexingIterator<Array<Key>>>.Iterator'

To Reproduce
Steps to reproduce the behavior:

  1. Open the project in Xcode 10.2 beta, using Swift 4 mode
  2. Build the project

Expected behavior
The project builds

Environment(please complete the following information):

  • Apollo master branch
  • Xcode 10.2 beta
  • MacOS 10.14.3
  • Swift Toolchain Version: 4.2.1
  • Project's SWIFT_VERSION: 4 (as specified in Apollo.xcodeproj)

This was first reported to us by @samproc as an AWS AppSync iOS issue, but I've reproduced this on the latest master of Apollo as noted above.

Related to this, the typealias EnumeratedIterator is deprecated, which affects the declaration & assignment of keyIterator above.

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

1 participant