Skip to content

Build error for Swift 4 on Xcode 9.2 #7

@jianlipeel

Description

@jianlipeel

/Users/jianli/iosApp/examples/myTest/SwiftSSDPExample/Carthage/Checkouts/SwiftSSDP/SwiftSSDP/SSDPResponse.swift:174:43: error: 'rangeAt' has been renamed to 'range(at:)'
let capturedRange = match.rangeAt(1)
^~~~~~~
range at:
Foundation.NSTextCheckingResult:25:15: note: 'rangeAt' was obsoleted in Swift 4
open func rangeAt(_ idx: Int) -> NSRange

Changed to let capturedRange = match.range(at: 1), then build successful.

And there is the same error when directly build SwiftSSDP.

Thanks a lot. Your project is really great.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions