Error while initializing roster storage XMPPFrameWork ios

168 views Asked by At

I am trying to add a user to my roster using the following code:

    let storage = XMPPRosterCoreDataStorage.sharedInstance()
    let roster = XMPPRoster.init(rosterStorage: storage!, dispatchQueue: DispatchQueue.main)
    roster.addDelegate(self, delegateQueue: DispatchQueue.main)
    roster.activate(self.stream)
    roster .addUser(XMPPJID(string: "[email protected]")!, withNickname: "john") 

I am able to add user successfuly but I recieved the following Error:

XMPPRoster: initWithRosterStorage:dispatchQueue: - Unable to configure storage!

Can any one clarify why I am unable to configure storage

0

There are 0 answers