Environment:
Eureka is installed with cocoapods with
_pod 'Eureka'_
and
_pod update_
While installing log says _Using Eureka (3.0.0)_
When try to compile I got
'Sequence' requires the types '[BaseRow]' and 'ArraySlice
and
Type 'Section' does not conform to protocol 'RangeReplaceableCollection'
as well as suggestion to
Add '@ objc' to expose this instance method to Objective-C
You should use Eureka 4.1.1. Eureka works with Swift 4.1 from version 4.1.0 on.
Are not there any support for Xcode 9.3 and swift 3.3 version.
@kamerc My issue might be better addressed here since I am running Xcode 9.3 rather than the beta.
I just downloaded Xcode 9.3 yesterday morning which is when the Type 'Section' does not conform to protocol 'RangeReplaceableCollection' errors showed up.
Terminal says Using Eureka (4.1.1)
I have cleaned and restarted XCode and still getting the same errors.
Thanks!
I have the same problem using xcode 9.3 version. Suggest a solution.
I have updated Eureka to 4.1.1, changed Swift to 4.1, and I get the /Pods/Eureka/Source/Core/Section.swift:247:1: Type 'Section' does not conform to protocol 'RangeReplaceableCollection' error. Please advise. Thank you!
same here
Sorry, guys, but I can't reproduce this. Created new project -> added Eureka pod to podfile -> pod install -> Add a row to a view controller -> builds fine.
This error you are mentioning happened with the codebase prior to Eureka 4.1.0 when trying to build with Swift 4.1 I think. Could you try to make sure the Eureka source code Cocoapods is downloading is effectively 4.1.1?
For those compiling in Swift 3.3, use Eureka's Swift-3.3 branch
@mats-claassen Yes, I can confirm I have Eureka 4.1.1 installed. I am running Swift 4.1 and the Type 'Section' does not conform to protocol 'RangeReplaceableCollection' issue persists. Thanks!
Same boat as @ReissZ here.
Same confirmation here as @ReissZ, thank you.
Any news?
I should deliver my project asap
@mats-claassen
Could anyone upload a sample project as we cannot reproduce this?
Maybe #1495 or #1498 are of some help
I've found that making sure the Swift Language Version
of the Eureka framework in Xcode is set to Swift 4.1
and doing a clean of the project fixed the Type 'Section' does not conform to protocol 'RangeReplaceableCollection'
issue.
Thanks @dsmailes and @mats-claassen for solving this issue [here].(https://github.com/xmartlabs/Eureka/issues/1498)
For those who facing same problem as me:
In the podfile, try:
pod 'Eureka' to install Eureka 4.1.1 with a post_install hook:
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == 'Eureka'
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.1'
end
end
end
end
I already had a working project using Eureka 4.0 and everything was working smoothly. After a few weeks without touching the project, now it doesn't build anymore and I had this "Type 'Section' does not conform to protocol 'RangeReplaceableCollection'" error. So I upgraded Eureka to version 4.1.1 as suggested, but now it's even worse. Now I have 34 compilation errors in Eureka:
What's going on?
In your project folder, try deleting the Pods folder and the .xcworkspace and then pod install.
Fixed!
Xcode 9.3
Swift 3.3
I had this error "Type 'Section' does not conform to protocol 'RangeReplaceableCollection' errors showed up.
fixed by using this in my pod
pod 'Eureka', :git => 'https://github.com/xmartlabs/Eureka.git', :branch => 'Swift-3.3'
Thanks @masterwali
was anyone able to install it in xcode 9.3.1?
Yes, no problem. Do you have any problems?
Im having similar issues with Eureka 4.3 not building. I assume by the errors theres a version mismatch somewhere.
Use Eureka 4.2 for older versions of Xcode. 4.3 is for Xcode 10
I'm also fairly new to github. How do I download an older version? I tried cloning a different branch but am not sure how to do this.
@jaketn go back to the main page > Branch > Tags select version > Download or get url
Hi, I am using swift 4.1 and Xcode 9.4.1
if I use Eureka '4.2' I get bunches of errors
if I use Eureka '4.0' I get this: Type 'Section' does not conform to protocol 'RangeReplaceableCollection'
I have already tried this: pod 'Eureka', :git => 'https://github.com/xmartlabs/Eureka.git', :branch => 'Swift-3.3'
I have include this: post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == 'Eureka'
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.1'
end
end
end
end
I think I have read and tried almost all, and yet... I can not solve it ;/
any ideas ??
Eureka 4.1 adds support for Swift 4.1. You should try with 4.1.0
, 4.1.1
or 4.2.0
. I do not have that version of Xcode around to try it, so I don't know which errors you are getting, sorry.
I have already tried all of them and yet none work... I actually gave up
El 29 may 2019, a las 14:40, Mathias Claassen notifications@github.com escribió:
Eureka 4.1 adds support for Swift 4.1. You should try with 4.1.0, 4.1.1 or 4.2.0. I do not have that version of Xcode around to try it, so I don't know which errors you are getting, sorry.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
Most helpful comment
Fixed!
Xcode 9.3
Swift 3.3
I had this error "Type 'Section' does not conform to protocol 'RangeReplaceableCollection' errors showed up.
fixed by using this in my pod
pod 'Eureka', :git => 'https://github.com/xmartlabs/Eureka.git', :branch => 'Swift-3.3'