on 04-21-2011 3:42 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.