Writing IOS apps with Delphi xe2 is amazing !!

Source: Internet
Author: User

Yesterday I used delphixe2 to write two IOS applications, one of which is 3D. Unfortunately, my iPhone is 3g, and the 3D one requires GPU support and is not running.

But the HD still runs quite well.

I have been using xcode for more than a year. xcode is also a good development tool, especially on MacOS, which is unparalleled. However, the development efficiency cannot be compared with that of Delphi.

I used Delphi xe2 and wrote a small program in less than 10 minutes. If this small program was written in xcode, it would not take 2 hours.

However, the compilation results are a little large, and there are as many as 6 MB! The execution speed is not as high as that developed by xcode. This may not be a problem. I was surprised and satisfied!

Now let's briefly talk about the development process and principles (online help already exists. Here we will only focus on it ):

1. install two things on MACOs. These two things are in the FireMonkey-iOS.dmg package, and the FireMonkey-iOS.dmg is under the firemonkey-Ios directory under the directory where you install delphixe2.

Copy or share the file. Double-click it in xcode to install FMI and FPC.

There are requirements for MACOs and xcode. MACOs must be at least 10.6.8 (snow leopard) or higher (Lion), and xcode must be at least 3.2.5 or higher. Another requirement is that when you installed xcode, you had an option that supports Unix development. By default, this option is selected. If you want to save space for uncheck like me, one of the above two cannot be installed (I forgot which one ).

 

These installations are automatically installed to the appropriate location, so you don't have to worry about them. It is worth noting that there was a long process, and my machine was quite good, and it took several minutes. I almost thought it was a failure.

 

2. In fact, after the above two things are installed, xcode will be extended/enhanced. You can directly use Pascal to write programs in xcode (of course you need to configure)

 

3. After you create, compile, and debug a program using Delphi, you will release the program to the iPhone. In this case, you can use the export to xcode tool to "Export, an xcode subdirectory will be created under the project of your program. Here is the export result -- in fact, it is not an export, but an xcode project file. (If you study this project file carefully, you will know how to directly use Pascal to write code in xcode.) There is no compilation action here. It is not compiled into freepascal as mentioned on the Internet, but Pascal itself.

When you copy or share a file, you cannot just copy the xcode sub-directory, because the file such as PAS is required.

 

4. Open the xcode subdirectory in MacOS, which contains the xcode project file, and double-click it to open it. Now, you can run it on a simulator or a real machine !!!

 

 

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.