Invalid AuthData in dictionary

0 votes

I have been trying to work with AppWarp Platform in Xcode using Swift. When I am trying to connect the user to my server, I am getting this error:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Invalid (non-string) key in JSON dictionary'


This is the mutable dict created by the function


apiKey = "key";

    authData =     {
        "F982424A-7284-4FA7-939E-E548AFEF650A" =         (
            "<UIViewAnimationState: 0x7f840ee25450>"
    keepalive = 6;
    recoverytime = 25;
    timeStamp = "2017-05-09T05:42:42.192Z";
    user = "123-123-1";
    version = "1.5";
No mater what I put as authdata, it alwayes puts random values in the dict and crashes my app.
asked May 9, 2017 in App42 Community Support by Inder Deep Singh (10 points)

1 Answer

0 votes

Hi Inder,

We have looked into it and It seems there is a problem in Swift when we try to assign String variable to NSString variable. I have fixed this issue with authData. Please download the updated sdk from this link.

Let me know if you have any other queries.
answered May 10, 2017 by rajeev.etc (1,660 points)
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on