We are developing an application that should be compatible with iPhone OS 3.0 and higher. The oData client library is compiled only for SDK 3.2 and 4.0, so I decided to compile it from the source code. I created a new static library project in XCode and
included all folders that reside in the "framework/src/MSODataLib" folder. Then I generated a proxy class for our oData service and wrote the following code:
WindowsCredential *credential = [[WindowsCredential alloc] initWithUserName:@"login" password:@"password"];
RsiDataSource *ds = [[RsiDataSource alloc] initWithUri:@"http://server/Rsi.svc/" credential:credential];
DataServiceQuery *query = [ds folders];
QueryOperationResponse *response = [query execute];
While this code is running on a device, a DataServiceQueryException is thrown in DataServiceQuery.m, line 309. While it is running in simulator, the situation is even worse - I get EXC_BAD_ACCESS message during execution of HTTP request (HTTPHandler.m, line
Did anybody try to compile the library for lower versions of iPhone SDK? Are you experiencing similar problems and, if yes, how it is possible to solve them?