Debugging of programs in Delphi xe4 for iOS (virtual machines, real machines and Win32)

Source: Internet
Author: User

After installation, you can check the project types that xe4 can create:

File-> New:

Is there an extra firemonkey mobile application option!

Then you click this menu item to bring up the firemonkey mobile application project type selection wizard form:

There are several types:

    • Blank ApplicationProgram)
    • 3D application)
    • Header/footer (page header/footer style Application)
    • Header/footer with navigation (application with navigation buttons in the footer of the page header)
    • Phone master-detail (mobile phone master-slave applications)
    • Tabbed (paging Application)
    • Tabbed with navigation (applications with navigation buttons on pages)
    • Tablet master-detail (flat master-slave applications)

You can select the first "Blank application" in the project type selection wizard form of firemonkey mobile application to see the Form Designer for iOS:

For iOS, the Form Designer is an iOS device interface (here is an iPhone), including iPad, iPhone, iPhone 5, and customdevice options, select from the drop-down list at the top right corner of the Form Design area.

You can also remove the border of iOS device and click this button in the upper-right corner of the Form Design area. The Form Designer will look like this:

You can also rotate the Form Designer 90 degrees, 180 degrees, and 270 degrees. The buttons are also the buttons in the upper right corner of the Form Design area:

The compilation platform, such:

In the environment configured last time, the iOS device platform is a real production environment. I didn't say how to configure it last time, so I will talk about it later.

IOS simulator is the virtual machine environment in Mac. Run the program for debugging. The paserver in MAC must be enabled.

We will first select the IOS simulator platform, and the program will run with an SQLite example written earlier.

The operation will be as follows:

Good results, O (∩ _ ∩) O ~, As silky as slippery.

Next we will choose the following:

Select the debug mode. The other two modes have not yet gone deep. It is not hard to see that one is published to the store.

To debug it in a real machine, apply for a developer certificate, and the annual value is 99 $. The other is to get a jailbroken machine and create a certificate on your own.

I chose the latter, saving money and effort, but it is only in the first phase. To achieve productivity, I still need to apply for a developer certificate. At this stage, I am studying. Next

Configure the environment of the real machine.

Configure the certificate first

Utility> key string access> certificate assistant> Create a certificate to generate a private signature. Identity type: Self-Signed root certificate, name: iPhone developer, certificate type:CodeSignature, overwrite the default value, all others default

In this way, the certificate is created.

Open xcode and create a project. Here helloxe4 is created.

Click to display the image. I am using the iPod for real debugging.

After being added as a development device, the set yellow light turns green (indicating that it can be debugged by a real machine)

The compiling platform is used to debug the environment.

If the two platforms are difficult to debug, you can use the Win32 platform for debugging. The main reason is that some logic problems are better, and some specific problems should be solved by the platform mentioned earlier.

In this way, the platform is added.

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.