Skip to Content
0
Former Member
Nov 21, 2012 at 11:43 AM

iOS Object API development tutorial

30 Views

I am walking through the SUP tutorial, ESD #3, and have some difficulties in understanding how it is supposed to work.

I have completed the MBO generation and loaded the code in Xcode, and added the required frameworks. That works fine.

Then I registered the application in Sybase Control Center, with the user name "user1" and activation code "123".

I started the application in Xcode, and iPhone Simulator started up, and I got the dialog that I should set the applications settings.

I did that, with SUP Username "supAdmin", slide the manual registration to On, and entered connection Name to "user1" and activation code to "123".

When I now run the iPhone application, I see in the logs that login failed. I made some extra log statements to look at the username and password sent,

and I see that the username sent from the iPhone app is correctly "supAdmin", but the password is wrong, "123" which is the sama as the activation code.

If I hard code the correct password for supAdmin in the app in Xcode, the login is successful.

I don't understand why it is necessary with both usernames "user1" and "supAdmin"? And where am I supposed to enter the password for supAdmin?