Eureka: Xcode 9 GM | Issue on compilation

Created on 13 Sep 2017  路  15Comments  路  Source: xmartlabs/Eureka

Hi, here is the error on loading for me.
image
image

  • Environment: Eureka, Xcode 9 and iOS 11.

Most helpful comment

@TCOA After take some time to research, here's the fix:

  1. Update podfile using master branch pod 'Eureka', :git => 'https://github.com/xmartlabs/Eureka.git'
  2. Add this to the end of podfile to set Eureka using Swift 4 (In case your project not support Swift 4 yet)
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.0'
            end
        end
    end
end
  1. Run pod install
  2. Clear project and Rebuild

All 15 comments

I will take a look shortly! Which repository branch are you using?

@mtnbarreto I get the same error using the feature/Xcode9-Swift4 branch

same problem here... after update xcode GM version

Is this in a tagged commit so that it can be tried using either cocoa pods or carthage?

@mtnbarreto Branch swift 4

@FredvanRijswijk On your fix, I have the Cannot call value of non-function type 'UITableView?' on the 458 and 469 line

I was wrong to update xcode, I am sorry and will not do this again =(
Gonna wait for the next release with fixes

This ticket is closed - and the tickets pointing to it are closed........

So, where is the FIX???? (nothing suggested by anyone totally fixes this - they just cause other errors!)

@TCOA After take some time to research, here's the fix:

  1. Update podfile using master branch pod 'Eureka', :git => 'https://github.com/xmartlabs/Eureka.git'
  2. Add this to the end of podfile to set Eureka using Swift 4 (In case your project not support Swift 4 yet)
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.0'
            end
        end
    end
end
  1. Run pod install
  2. Clear project and Rebuild

Thanks, though now I get another issue......

Pre-downloading: Eureka from https://github.com/xmartlabs/Eureka.git
[!] Unable to satisfy the following requirements:

Suggestions on that (I know it is not the same project/group, but it is still 'Eureka' to me...)?

For others that are finding 'challenges' in getting this to work.....

Put this in your podfile
pod 'Eureka', '~> 3.0' pod 'ImageRow', '~> 2.0'
then 'pod install'

That will get the pod stuff installed.

HOWEVER, when trying to compile, we are back to the same error as before......

in Section.swift, line 201, I get 2 errors:

Type 'Section' does not conform to protocol 'BidirectionalCollection' 'Collection' requires the types 'Section.SubSequence' (aka 'Array<BaseRow>') and 'ArraySlice<BaseRow>' be equivalent

and on line 227, the
Type 'Section' does not conform to protocol 'BidirectionalCollection'

So, still no 'joy'........

ANYONE HAVE A FIX THAT WORKS FOR EUREKA AND IMAGE ROW????

Simply removing the non-updated rows and installing Eureka yields version 4.0 which works perfect. I had to drop the post office row and the image row, but at least it works. Frankly Eureka should have come out with the Swift 4/Xcode 9 version earlier to allow devs time to update the custom rows.

The fix of @tuantmdev worked for me !

@tuantmdev fix worked for me as well!

Was this page helpful?
0 / 5 - 0 ratings