|
Title:
|
DataSnap iOS Mobile Connectors and case sensitive file names
|
Author:
|
Bob Swart |
Posted:
|
4/12/2012 5:12:23 PM
(GMT+1)
|
Content:
|
Delphi XE2 Update #4 was released a few weeks ago, and actually introduced a new features: adding Mobile Connectors support for FreePascal for iOS 4.2 and 5.0, although not without a little issue that may confuse some people (and demos)...
DataSnap REST Applications that export mobile connectors, can be used to download an archive with proxy source code and support units. Delphi XE2 Update #4 added this support for FreePascal and iOS 4.2 and 5.0 However, the filenames in the packages are not entirely correct, since two units have a different unitname compared to their filename. Specifically, unit DSRestParameter is found in file DSRESTParameter.pas and unit DSRestTypes is found in file DSRESTTypes.pas. While Windows filenames are not case sensitive, the Mac uses case sensitive filenames. And a unit called "DSRestTypes" is assumed to be in file DSRestTypes.pas and not DSRESTTypes.pas. In order to avoid problems, you need to rename the unit with filename DSRESTParameter.pas to file name DSRestParameter.pas, and the unit with filename DSRESTTypes.pas to DSRestTypes.pas. That will ensure that the compiler will try to locate the correct source files and actually find them.
Tip: if you want to ensure that the correct filenames are always used for new DataSnap REST Server applications as well, you may want to go to the Object Repository location which is C:\Program Files (x86)\Embarcadero\RAD Studio\9.0\ObjRepos and in there find the \en\dsrest\connectors\freepascal_ios50 and \en\dsrest\connectors\freepascal_ios42 subdirectories for the iOS 5.0 and 4.2 proxy files that will be used. Rename the DSRESTParameter.pas and DSRESTTypes.pas files (change REST to Rest in the filename) and all Delphi XE2 DataSnap REST Servers with the Mobile Connectors enabled will use the correct filenames from now on.
These details are included in the second edition of my Delphi XE2 DataSnap Development courseware manual (released earlier this week) and will also be covered in the next edition of my Delphi XE2 iOS Development courseware manual of course.
|
Back |
|