You can fix your snippet using …
clockworkSmsUrl.replacingOccurrences(of: " ", with: "+")
Swift 3 changed the way how objc APIs are imported.
Please note that there are some issues with the code you posted:
- the result of
replacingOccurrencesis discarded. - there are more characters to be escaped.
URLCompontentsexposes safer ways to construct URLs.