nvzqz/RandomKit

Build errors on Xcode 9 beta 4 with Swift 3.2

ldiqual opened this issue · 3 comments

image

RandomKit/Extensions/Swift/Strideable+RandomKit.swift:48:1: Type 'String.UTF16Index' (aka 'String.Index') does not conform to protocol 'RandomInRange'

RandomKit/Extensions/Swift/Strideable+RandomKit.swift:48:1: Type 'String.UTF16Index' (aka 'String.Index') does not conform to protocol 'RandomInClosedRange'

RandomKit/Extensions/Swift/Strideable+RandomKit.swift:48:1: Type 'String.UTF16Index' (aka 'String.Index') does not conform to protocol 'RandomInRange'

via cocoapods

pod 'RandomKit', '5.2.0'
nvzqz commented

This may be due to recent changes in Swift 3.2 & 4 regarding String indexing and String now being a collection. Thanks for pointing this out; I'll try to fix this soon.

nvzqz commented

Just released v5.2.1 with this change.

nvzqz commented

Just released v5.2.2 which reimplements this feature that was removed in v5.2.1.