Closed sandeepc24 closed 11 years ago
The WinHTTP unit was added to the package improperly. This may be the problem. Remove the unit from the package and disable the options USE_WIN_HTTP and USE_WIN_INET in the DelphiRest.inc file.
I tried the latest version but it still doesn't compile for iOS as it is still complaining with following errors in SuperObject. [DCC Error] superobject.pas(640): E2154 Type 'TSuperTableString' needs finalization - not allowed in variant record [DCC Error] superobject.pas(641): E2154 Type 'TSuperArray' needs finalization - not allowed in variant record
This is a problem in the SuperObject framework. There are registered issues in https://code.google.com/p/superobject/issues/list.
Probably will need to use another json library for iOS.
I wrote a new marshal and unmarshal based on DBXJson. I can not test with iOS here, I need you to test and check if there is any incompatibility yet.
I tried compiling the package for iOS but it didn't compile as VCL package is still used. Ithink you need to remove dependency on VCL for it to work for iOS.
This does not work for iOS as it is pulling in VCL, I am not sure why VCL should be required for this.