cancel
Showing results for 
Search instead for 
Did you mean: 

SUP ObjectiveC API for iPhone

Former Member
0 Kudos

Hi Guys,

I am making an application for iPhone that does purchase order approval.

I am stuck at one point.

Here is the process I followed.

I took the generated code from server and added to my Sample project.

I copied ObjectiveC API-internal and public folder to my Sample project.

I also copied Settings.bundle and other Debug-iphonesimulator library files to my approval project.

I added frameworks from existing frameworks.They were 6.

I changed library path.

Header Search Paths : /Users/edccoe/Desktop/API/ObjectiveC/includes/**

Library Search Paths : /Users/edccoe/Desktop/API/ObjectiveC/includes/** "/Users/edccoe/Documents/Projects/XCODE/SampleCode"

After doing all these things I am getting an error Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

Could any one please help?

Thank you,

Snehal Mehta

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Ensure that you have copied all "external" files (Libraries, settings.bundle, Generated Code) into your project's folder. If you set $(SRCROOT) in your Search Paths and hit the "Recursive" flag, the compiler should find all necessary things.

The error message you get could have 2 different reasons:

a) Any necessary thing (lib, code, setting, whatever) could not be found -> Check search paths!

b) The SUP API libs you included don't match the type of device you're running. Please select carefully between simulator / device and debug / release. AFAIK, the libs could not be included in parallel, you have to "exchange" them everytime you change the above constellation.

If you need further help, please provide some more details about your configuration or your console output.

Cheers,

Christian Klöppel

Former Member
0 Kudos

Hi Christian,

Thank you for your reply.

Here are the details of configuration.

I am using Mac OS 10.6 and Base SDK-IOS 4.2.

My ObjectiveC folder is on my desktop.

So I gave search paths,

Header Search Paths: /Users/edccoe/Desktop/ObjectiveC/includes/**

Library Search Paths :/Users/edccoe/Desktop/ObjectiveC/includes/** /Users/edccoe/Documents/Projects/XCODE/NewProject/"

Apart from these I copied all external files to my project.

I copied 3 library files libclientrt.a,libMO.a,libS UBObj.a ,Generated Code from SUP ,two folders from ObjectiveC API that is internal and public.And finally I added all the frameworks not only 6.

I tried to change deployment version to 10.5 but had same error.

Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

I tried lots of times with different possibilities but

Any help would be greatly appreciated.

Thanks in advance.

Regards,

Snehal Mehta

Former Member
0 Kudos

hi Snehal

Are you able to run the application if yes, then it may be possible that your device is not registered in sybase control center.

You can follow this link

/people/joseph.berthe/blog/2010/10/21/sybase-unwired-platform-for-iphone-40-part-22SAPNetworkWeblogs%2528SAPNetworkWeblogs%2529

Hope it works

Best Regards

Suresh

Former Member
0 Kudos

Hi Suresh,

Thanks for reply.

But I do not think so that I have to do anything with SSC as I am running my app on simulator.

But I am not sure.Do I need to do with simulator as well?

I am facing compile time error only.

Thank you,

Snehal Mehta

Former Member
0 Kudos

Hi snehal

You have to do for simulator also.

You can check the link which i have given in earlier post.

Bust as the error is of compile type you can check weather you have added all necessary classes,you are connected to the system where sybase is installed.

Best regards

Suresh

Former Member
0 Kudos

Hi Suresh,

Device registering is the next step after build.

I followed the process described in /people/joseph.berthe/blog/2010/10/20/sybase-unwired-platform-for-iphone-40-part-12 many times.

But still not getting it.

Snehal Mehta

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Guys,

I downgraded my system for iPhone SDK 4.0.

I am getting an error GCC-4.2 failure with exit code 1.

I opened detailed description of an error which says ld: library not found for -lclientrt

Can any one please help?

Thank you,

Snehal Mehta

Former Member
0 Kudos

Hi Snehal

Have you added all the three library files from the debug simulator folder in lib's folder as the article says,

one of the library name is as you are mentioning in your error message.

Regards

Suresh

Former Member
0 Kudos

lclientrt.a file will be in either of the 4 folders within the Libs folder...,

so you need to set the clientAPI\ObjectiveC\Libs\iphonesimulator-debug in Library Search Path

Also.., I am struck with one more thing.., I am getting around some 55 build errors.., stating "undefined symbol "

IVAR_ ......,

SUPmessage cannot be referenced from SUPmessage.o (not exactly the same..., kind of .. I forgot what the error is )

Edited by: kiranpk1988 on Apr 29, 2011 4:51 AM

Former Member
0 Kudos

HI,

I was also having those error.

I solved it using clientAPI for sybase 1.5.3

It may depend on the version of your iOS.

Former Member
0 Kudos

Thanks I got it fixed by installing 1.5.5

0 Kudos

While connecting to sampleDB from sup my app is running fine from iphone.

i am using sup 2.0 and xcode 3.2.6

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

Its Working Fine now

regards

K.Yogesh

Edited by: cuteguys08 on Aug 26, 2011 4:57 PM

Edited by: cuteguys08 on Sep 12, 2011 12:48 PM