Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the workflow for creating an iOS app

What's the workflow for creating an iOS app using Delphi-XE2.

This is really a reference question and I'll answer it as soon as SO lets me, but I thought it would be nice to have the answer here

like image 481
Johan Avatar asked Sep 02 '11 14:09

Johan


People also ask

What is the flow of creating an application?

The flow of a web application is characterized by the systematic organization of web pages, page data, page actions, and mappings to business logic and the interconnection of these components. The web diagram tools provide you with a visual way to create and manage the flow of your web application.

How do I start building iOS apps?

To start developing iOS apps, Xcode is the only tool you need to download. Xcode is an integrated development environment (IDE) provided by Apple. It includes the iOS SDK (Software Development Kit), a source code editor(UI), debugging tools, and much more.


1 Answers

iOS Applications
FireMonkey iOS applications are written in Delphi:

File > New > Other > Delphi Projects > FireMonkey iOS HD Application 
File > New > Other > Delphi Projects > FireMonkey iOS 3D Application 

Projects for iOS do not have a Target Platforms node in the Project Manager; they only target iOS

iOS Forms
Additional Delphi forms are added the same way as with Windows and Mac OS X. Because the target platform is iOS, and the production executable is built with the Free Pascal compiler, the uses declaration for form units is different:

 uses
   SysUtils, Types, Classes, Variants, FMX_Types, FMX_Controls, FMX_Forms,
   FMX_Dialogs, FMX_ExtCtrls, FMX_Ani;

iOS Workflow
FireMonkey iOS development has to be done using both Windows and a Mac.
Before starting your first iOS project, you must perform one-time setup on both ends. Then for each project, development occurs in the following sequence:

  • Create project in RAD Studio on Windows.
  • Save project files to a shared directory or media accessible to both Windows and Mac.
  • Use the Form Designer and code editor in RAD Studio.
  • Run or debug the project in RAD Studio as a Win32 application for prototyping.
  • At least once after creating the project, and whenever new files are added to the project, run dpr2xcode on Windows to create or update a corresponding Xcode project.
  • In Xcode on the Mac, open the .xcodeproj file in the generated xcode subdirectory of the shared project.
  • Run or debug the project in Xcode with the iOS Simulator and then on a device for production testing.
  • Iteratively develop the application using the Form Designer or code editor in RAD Studio, or the code editor in Xcode, making sure to save files as you work so that changes can be seen everywhere.

Compiler and Runtime Differences
Xcode builds the application with the Free Pascal compiler to run on the Free Pascal runtime library. Some features of the Delphi compiler and RTL are not supported by Free Pascal.

like image 117
Johan Avatar answered Sep 20 '22 17:09

Johan