IOS apps
FireMonkey iOS apps are written in Delphi:
File > New > Other > Delphi Projects > FireMonkey iOS HD Application File > New > Other > Delphi Projects > FireMonkey iOS 3D Application
IOS projects do not have target node platforms in the project manager; they target iOS only
iOS forms
Additional Delphi forms are added in the same way as on Windows and Mac OS X. Since the target platform is iOS and the production executable is built using the Free Pascal compiler, the declaration of use for form units is different:
uses SysUtils, Types, Classes, Variants, FMX_Types, FMX_Controls, FMX_Forms, FMX_Dialogs, FMX_ExtCtrls, FMX_Ani;
IOS workflow
IOS development for FireMonkey must be done using both Windows and Mac.
Before starting your first iOS project, you must do a one-time setup from both ends. Then, for each project, development takes place in the following sequence:
- Create a project in RAD Studio on Windows.
- Save the project files to a shared directory or media available for both Windows and Mac.
- Use the form designer and code editor in RAD Studio.
- Run or debug a project in RAD Studio as a Win32 prototyping application.
- At least once after creating the project and whenever new files are added to the project, run dpr2xcode on Windows to create or update the corresponding Xcode project.
- On Xcode on Mac, open the .xcodeproj file in the generated xcode subdirectory of the shared project.
- Run or debug a project in Xcode using iOS Simulator, and then on the device to test products.
- Iteratively develop the application using the form designer or the code editor in RAD Studio or the code editor in Xcode, making sure to save the files at run time so that changes can be seen everywhere.
Differences between Compilers and Runtime
Xcode creates the application using the Free Pascal compiler to work in the Free Pascal runtime library. Some Delphi and RTL compiler functions are not supported by Free Pascal.
Johan source share