Search code examples
iosswift3xmppframework

Argument labels (_:) do not match any available overloads


i want to use XMPP Framework and i download lib from github. The given below code gives an error. can someone help me out and i am taking guide from below link: XMPP FRamwork lib

stream?.myJID = XMPPJID.init("[email protected]")

Updated:

XMPP Suggestions


Solution

  • The link that you have given in question, is uses class method not the init to set XMPPJID.

    stream?.myJID = XMPPJID.jid(with:"user@localhost")