Eureka: xcode9.0/9.1 compiler warnings

Created on 29 Sep 2017  路  8Comments  路  Source: xmartlabs/Eureka

Eureka 4.0
Xcode9.0/9.1

Hit these warnings on Xcode9.0 + 9.1 (the characters deprecations are on 9.1 and are easy to fix, just remove the .characters, the others are from 9.0 and 9.1):

screen shot 2017-09-29 at 2 41 59 pm

swift 4 awaiting response

Most helpful comment

You can silence the warning by adding as Any. Example:
if let sec = section as Any as? CountrySelectableSection<Row> { ...

All 8 comments

The warnings seems to be swift 4 compiler issues. Please upvote this swift issie so it get fixed.. https://bugs.swift.org/browse/SR-5252

ios 11.1 is under beta version and these warnings won't be fixed on master branch yet.
I just created https://github.com/xmartlabs/Eureka/tree/ios/11.1 to add ios 11.1 fixes.

just a note that the characters warnings from xcode9.1/ios11.1 when fixed (by removing the word characters) is compatible w/ xcode9/ios10... could be fixed in master and retain compatibility.

@jaz-ah Could you make a pull request removing characters warning?

@mtnbarreto no problem - done: https://github.com/xmartlabs/Eureka/pull/1265

Getting the master branch by using: pod 'Eureka', :git => 'https://github.com/xmartlabs/Eureka.git' still contains the Cast from 'UIViewController' to unrelated type 'MultipleSelectorViewController<GenericMultipleSelectorRow<T, Cell>>' always fails warnings

It's a compiler bug, as @mtnbarreto stated.

Please everyone vote and comment on this https://bugs.swift.org/browse/SR-5252 so Apple can know many people is being affected by this bug.

You can silence the warning by adding as Any. Example:
if let sec = section as Any as? CountrySelectableSection<Row> { ...

Was this page helpful?
0 / 5 - 0 ratings