Eureka: Xcode 9.3 compilation error

Created on 3 Apr 2018  路  5Comments  路  Source: xmartlabs/Eureka

Eureka 4.1.1
Xcode 9.3
screen shot 2018-04-03 at 12 18 17 pm
screen shot 2018-04-03 at 12 18 25 pm
screen shot 2018-04-03 at 12 19 41 pm

I still facing compilation error after update to 4.1.1 . Please advise. thank you

Most helpful comment

Thank @dsmailes and @mats-claassen .

For those who facing same problem with me , you try with a post_install hook in podfile:

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

All 5 comments

How are you installing Eureka?
I suppose in the Xcode build settings or in the dependency manager config it is specified to build Eureka with the wrong Swift version.

mats-claassen has the correct answer. You need to change the Swift version to 4.1 in the Pods build settings.

Thank @dsmailes and @mats-claassen .

For those who facing same problem with me , you try with a post_install hook in podfile:

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

@RexNexstream this worked for me! One thing to note is make sure you still have pod 'Eureka' in your target as well. Thanks!!

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 ??

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zoul picture zoul  路  3Comments

pteasima picture pteasima  路  3Comments

Tomas1405 picture Tomas1405  路  3Comments

Sweeper777 picture Sweeper777  路  3Comments

allanrojas picture allanrojas  路  3Comments