Eureka: Fails to compile in Xcode 9

Created on 6 Jun 2017  路  16Comments  路  Source: xmartlabs/Eureka

With Swift version 3.2 as compiled with Xcode 9 - Beta 1.
Installed as a pod with use_framworks!

/Users/geoffmacdonald/imgur-ios/Pods/Eureka/Source/Core/Section.swift:206:1: error: 'Collection' requires the types 'Section.SubSequence' (aka 'Array<BaseRow>') and 'ArraySlice<BaseRow>' be equivalent
extension Section : MutableCollection, BidirectionalCollection {
^
/Users/geoffmacdonald/imgur-ios/Pods/Eureka/Source/Core/Section.swift:206:1: note: requirement specified as 'Self.SubSequence' == 'Self.SubSequence.SubSequence' [with Self = Section]
extension Section : MutableCollection, BidirectionalCollection {
^
/Users/geoffmacdonald/imgur-ios/Pods/Eureka/Source/Core/SelectableSection.swift:65:43: error: associated type 'Self.SubSequence.SubSequence' cannot be equal to both 'Section.SubSequence' (aka 'Array<BaseRow>') and 'ArraySlice<BaseRow>'
extension SelectableSectionType where Self: Section, Self.Iterator == IndexingIterator<Section>, Self.Iterator.Element == BaseRow {
                                          ^
/Users/geoffmacdonald/imgur-ios/Pods/Eureka/Source/Core/Section.swift:206:1: error: 'Collection' requires the types 'Section.SubSequence' (aka 'Array<BaseRow>') and 'ArraySlice<BaseRow>' be equivalent
extension Section : MutableCollection, BidirectionalCollection {
^
/Users/geoffmacdonald/imgur-ios/Pods/Eureka/Source/Core/Section.swift:206:1: note: requirement specified as 'Self.SubSequence' == 'Self.SubSequence.SubSequence' [with Self = Section]
extension Section : MutableCollection, BidirectionalCollection {

Most helpful comment

pod 'Eureka', :git => 'https://github.com/xmartlabs/Eureka.git', :branch => 'Xcode9-Swift4' does not work for me. But pod 'Eureka', :git => 'https://github.com/xmartlabs/Eureka.git', :branch => 'Xcode9-Swift3_2' does.

All 16 comments

This seemed to be an issue of Protocol conformance with Collection where the subscript should return an ArraySlice instead of an actual Array type.
I've fixed it, let me know if that works out for all of you working under Xcode 9.

Hi, swift3.2 branch works with Xcode 9 beta.
Thanks @ivanbruel for the contribution!

thanks guys

I have this problem ?

Xcode 9

requires the types 'Section.SubSequence' (aka 'Array') and 'ArraySlice' be equivalent

me too
xcode 9 beta 3

xcode 9 beta 4 doesn't work

FYI, xcode 9 beta 5 is working with swift3.2 branch

How can I update Pod Eureka to Beta 5?

Having the same issue on the newly released Xcode 9...

'Collection' requires the types 'Section.SubSequence' (aka 'Array<BaseRow>') and 'ArraySlice<BaseRow>' be equivalent

Same here on the released xcode 9

'Collection' requires the types 'Section.SubSequence' (aka 'Array') and 'ArraySlice' be equivalent

pod 'Eureka', :git => 'https://github.com/xmartlabs/Eureka.git', :branch => 'Xcode9-Swift4' does not work for me. But pod 'Eureka', :git => 'https://github.com/xmartlabs/Eureka.git', :branch => 'Xcode9-Swift3_2' does.

The problems appears again in Xcode 9.4 and Swift 4.2

Swift 4.2 is available in Xcode 10.

There is also a Swift-4.2 branch

Same problem in xCode 9.4, Swift 4.1
@elalienx did you find a fix ?

How to fix problem swift compiler issues in got Eureka .

For Xcode 10 use Eureka 4.3. For older versions use 4.2.

Was this page helpful?
0 / 5 - 0 ratings