User Login - IOS SDK

7 posts, 1 answers
  1. Daniel
    Daniel avatar
    8 posts
    Member since:
    Feb 2014

    Posted 14 Feb 2014 Link to this post

    I've been struggling around with the IOS Backend SDK trying to login a user from my native App.
    Following the SDK Documentation I'm able to setup my App and access the Everline Backend, using my API-Key. I'm also able to create new user entries using
    the given example:
    EVUser *newUser = [[EVUser alloc]init];
    [newUser setUsername:@"jSmith"];
    [newUser setPassword:@"111111"];
    ...
    }];
    but as soon as I try to access user data via login (or other functions)
    e.g:
    [EVUser loginInWithUsername:@"jSmith" password:@"111111" block:^(EVUser *user, NSError *error) {
       ...        
     }];

    I end up here:
    'NSInvalidArgumentException', reason: '+[NSDate dateFromRFC3339String:]: unrecognised selector sent to class ...
    If anyone experienced the same problem and/or has a solution It would help a lot.

    Daniel








  2. Anton Dobrev
    Admin
    Anton Dobrev avatar
    539 posts

    Posted 14 Feb 2014 Link to this post

    Hi Daniel,

    Thank you for your question!

    Could you please verify that you are using the latest version of the Telerik Backend Services iOS SDK? If not, please upgrade it. If the problem is reoccurring, we will try to hand over an advice and solution asap.

    Best regards,
    Anton Dobrev
    Telerik
    Everlive is now Telerik Backend Services, and is part of the Telerik Platform. For more information on the new name, and to learn more about the Platform, register for the free online keynote and webinar on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT)
  3. Daniel
    Daniel avatar
    8 posts
    Member since:
    Feb 2014

    Posted 14 Feb 2014 in reply to Anton Dobrev Link to this post

    Hi Anton,

    thank you for your answer, I downloaded the latest version of the IOS SDK this morning to verify it's up to date but the problem still occurs. I tried most of the methods defined in EVUser.h always resulting in the same Exception. If you need detailed informations feel free to contact me.

    Best Regards
    Daniel Marx
  4. Daniel
    Daniel avatar
    8 posts
    Member since:
    Feb 2014

    Posted 17 Feb 2014 in reply to Daniel Link to this post

    Hi again,

    for now I implemented my own iOS SDK on top of the REST API using the specifications as mentioned in the documentation. The EVObject I constructed handles NSDate properties without the use of the dateFromRFC3339String method and it's working like charme, at least for my purposes. For sure I'm still interested in any progress concerning my question, especially as I'm sticking to the EverliveSDK interface and therefore should be able to exchange my solution anytime using the iOS SDK provided by Telerik.

    Daniel Marx
  5. Answer
    Anton Dobrev
    Admin
    Anton Dobrev avatar
    539 posts

    Posted 17 Feb 2014 Link to this post

    Hello Daniel,

    We have managed to reproduce the problem on our side.

    The solution is to add an -ObjC linker flag. Here is how to do it:
    • Select the project file from the project explorer
    • Choose the target project for which you want to add the flag
    • Head to the Build Settings
    • Select All
    • Scroll down to the Linking section
    • Navigate to Other Linker Flags
    • Add -ObjC as a value
    • Clean and rebuild the project

    Please, let us know if this works for you.

    Regards,
    Anton Dobrev
    Telerik
    Everlive is now Telerik Backend Services, and is part of the Telerik Platform. For more information on the new name, and to learn more about the Platform, register for the free online keynote and webinar on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT)
  6. Daniel
    Daniel avatar
    8 posts
    Member since:
    Feb 2014

    Posted 17 Feb 2014 in reply to Anton Dobrev Link to this post

    Hi,

    thanks a lot, didn't think about that, within my selfmade Framework I set that Linker flag and this way I just had to replace it by your version and everything works fine now.

    Thumbs up for that quick and useful response ;)

    Regards Daniel
  7. Anton Dobrev
    Admin
    Anton Dobrev avatar
    539 posts

    Posted 18 Feb 2014 Link to this post

    Hello Daniel,

    Thank you for your valuable feedback! Your Telerik points have been updated as a token of gratitude.

    Regards,
    Anton Dobrev
    Telerik
    Everlive is now Telerik Backend Services, and is part of the Telerik Platform. For more information on the new name, and to learn more about the Platform, register for the free online keynote and webinar on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT)
Back to Top