Juanpe / Swift-VIPER-Module

Xcode template for VIPER Architecture written in Swift 4
542 stars 113 forks source link

error installing with Swift 4 #8

Closed jorgifumi closed 6 years ago

jorgifumi commented 7 years ago

sudo swift install.swift Password: install.swift:58:16: error: subscripts returning String were obsoleted in Swift 4; explicitly construct a String from subscripted result return output[output.startIndex ..< lastIndex] ^~~~~~~~~~~ String( )

albcc commented 6 years ago

You should replace line 58 with

    return String(output[output.startIndex ..< lastIndex])
Juanpe commented 6 years ago

Fixed! ✅

KaytenTechnology commented 6 years ago

We face the same problem

Juanpe commented 6 years ago

@KaytenTechnology It's already solved 😬