on 04-28-2011 5:33 PM
Hi Guys,
I am developing sample app for iPhone in which I am trying to pull data from SUP.
Here is document which I followed.
I followed steps correctly.
But when I run the application data is not coming from SUP.
I tried in debug mode and it says XCode could locate source : SUPMessageClient.m
I think that must be in library files which I imported to my project.
Any help or suggestions?
Thanks,
Snehal Mehta
hi snehal
Can you tell what is the error ?
Have you check the settings in the SUP101 application
It is inside "settings" in i phone simulator
Best Regards
Suresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Suresh,
Thank you for reply.
After compiling and debugging ,I opened my console and it was written that XCode could not locate the source:SUPAbstractDB.m
I had already given details in settings which is in iPhone simulator for SUP101 project.
I think it is not able to communicate with three library files(.a files).So I used release-iPhone simulator libraries but it also didn't work.
What is your view for this?
Thanks,
Snehal Mehta
HI snehal
According to document we should use 3 files from debug-i phone simulator have you checked the server settings in iphone simulator
You may not be connecting to sup check all details
1.Enter correct password for sybase control center.
2.Registered your device in sybase control center.
3.Entered the user name ,password in sup101 setting(in settings of i phone simulator).
hope it works
Regards
Suresh
Hi Suresh,
Now I am not having source file not found problem.
But instead I am not able to give user name and password correctly which is in generated code.
[SUP101_SUP101DB asyncOnlineLogin:@"supAdmin" password:@"s3pAdmin"];
while([databaseCH loginSuccessCount] < 1)
{
[NSThread sleepForTimeInterval:1];
}
These were the lines where I am having problem.
loginSuccessCount never goes above 1.So authentication is not done correctly.
I can see my device registered in SCC.
Thank you,
Snehal Mehta
Hi,
Thanks for reply.
I bypassed the condition check also.
But I do not see any data coming to my text fields.
When I debug it says Xcode could not locate source file: SUPAbstractDB.m
I opened generated database file in my sqlite manager but there also I dnt see any data.
I printed the values in my console which I am trying to get ,but all null.
Any idea?I am able to run SUP 1.5.3 only.Other versions are giving me an error.
Thanks,
Snehal Mehta
Hi,
I think I got the problem.I also had similar problem.The reason is its login success count which is in callbackhandler is not going above 1.
Make sure you specify library search path and header search path correctly.
Is your device gets registered successfully on SCC?
What is the information you providing at Settings in iPhone?
And when you deploy make sure you replace and select message based system.
Let me know cause I think I solved this kind of issue before but I do not remember exactly what I did.
I need to recall it.
Regards,
Snehal Mehta
Snehal, In the SUP2.0 tutorial, they are not making use of that LoginSuccess Count.., instead they have made use of Default Notification Center. Even I had faced this same issue of SUPABSTRACT.m file not found.., when I had tried with 1.5.2 and 1.5.5, But when I updated Xcode to version 4 and SUP to 2.0 and followed the latest tutorial, I was able to get the data from SUP and then update back.,
@cuteguys08, As snehal said, you need to register your device as an MBS device and check whether your device/simulator status is ONLINE in SCC when you run the APP.
In XCODE4, click on main project, then click on the Project in the middle pane>Build settings> and then specify the Header search Path, Sometimes u also need to specify the User Header search Path.
Now, in the middle Pane, click on Target file, >Build settings>and check whether Library search Path is displayed. If necessary, copy and paste the same library search path in the Build settings of the project file (cant help,.. You need to play around a bit )
Thanks for your help.
KiranPK1988
WE MADE IT WORK IN XCODE 3.2.6.
While connecting to sampleDB from sup my app is running fine from iphone.
i am using sup 2.0
I have generated my MBO MY flights from sup and my device is also registered in Sybase.
But while using the above example (MyFlights) which you have provided I am getting error as login failed in my console.
I followed the zip file and the documents provided in the bellow link.
/people/joseph.berthe/blog/2010/10/20/sybase-unwired-platform-for-iphone-40-part-12
regards
K.Yogesh
Edited by: cuteguys08 on Aug 26, 2011 5:08 PM
Edited by: cuteguys08 on Aug 26, 2011 5:10 PM
Hi Guys,
I am trying to fetch data from SAP to iPhone with Sybase unwired platform. I am able to see my iPhone simulator in sybase control center.I can see online and offline status of my application.But I am not able to see any data in my iPhone simulator. I run debug and noticed that loginSuccessCount from defaultCallBackHandler doesn't go above 1. I tried many username and passwords starting from sup and s3p accordingly.
Can any one give some idea?
Thanks, Snehal Mehta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.