This is a migrated thread and some comments may be shown as answers.

User Login - IOS SDK

6 Answers 70 Views
Apple iOS SDK
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Daniel
Top achievements
Rank 1
Daniel asked on 14 Feb 2014, 01:45 PM
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








6 Answers, 1 is accepted

Sort by
0
Anton Dobrev
Telerik team
answered on 14 Feb 2014, 03:12 PM
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)
0
Daniel
Top achievements
Rank 1
answered on 14 Feb 2014, 03:27 PM
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
0
Daniel
Top achievements
Rank 1
answered on 17 Feb 2014, 06:10 AM
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
0
Accepted
Anton Dobrev
Telerik team
answered on 17 Feb 2014, 12:39 PM
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)
0
Daniel
Top achievements
Rank 1
answered on 17 Feb 2014, 08:09 PM
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
0
Anton Dobrev
Telerik team
answered on 18 Feb 2014, 09:07 AM
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)
Tags
Apple iOS SDK
Asked by
Daniel
Top achievements
Rank 1
Answers by
Anton Dobrev
Telerik team
Daniel
Top achievements
Rank 1
Share this question
or