XE6 & iOS Development certificate-free real-computer debugging (2): Connect the real machine and run the app (there's a picture of the truth)

Source: Internet
Author: User
Tags appsync

XE6 & iOS Development certificate-free real-computer debugging (2): Connect the real machine and run the app (there's a picture of the truth) 2014-08-26 21:26

Online can find about the Delphi XE series of mobile development related articles very little, this article as far as possible with detailed text content, fool-like expression to tell you the answer you want.

Before connecting to the real machine, make sure that the real machine is jailbroken and that the Appsync is installed.
---------------------------------------------------------------

1. Make sure the iphone is jailbroken and can be seen and run successfully cydia.

2. and install the Appsync. This if you do not, can Baidu search, for example, add a Gavei source what, here not detailed introduction.

3. Plug the phone into a computer with a regular data cable, and all the windows that pop up are turned off.

4. Open the virtual machine, in the lower right corner of the status bar can see the virtual machine detected the device, we click this icon.

5. Select ' Connect (connect to host ').

6. On the connection, the icon becomes brighter.

7. If you've never opened itunes after you've installed the virtual machine, itunes will run automatically and pop up with the protocol and click ' Agree '.

8. At the same time, if you access the Internet virtual function, it will also pop up the update dialog box, we do not need to download the latest version.

9. Back to the theme, the 6th step of the mobile phone connection success, the icon becomes bright, we click on the desktop (the Star map Anywhere), in the Finder select ' Go ', ' application '.

10. Find ' Xcode ' and double click to open.

11. After you open Xcode, we click ' Window ' in the menu bar.

12. Select ' Window ' and select ' Organizer '.

13. In the pop-up window, click ' Devices '.

14. If the phone is connected for the first time, a ' small yellow dot ' will appear on the left, and you need to click on the right side of ' use for development ' to turn on developer mode.
(Since I've been connected here, I don't see the ' Use for development ' button here.) )
When you click on ' Use for development ', you will be asked to enter the AppleID, we do not enter, click Cancel, and close Xcode, and then in the lower right corner of the virtual machine disconnected the phone connection, plug the USB cable.
After the connection is disconnected, we plug the USB back in and start again from the 4th step above. At this point you will find that Xcode will read the data on our phone, and we'll wait patiently for the progress bar to complete.

15. When the progress bar is complete, the small dots next to the phone appear green, indicating that the device is available for development. If it is not green, repeat the above steps or ask for a reason.

16. We click on the Xcode menu bar, select ' Xcode ', select ' Quit Xcode ' and exit Xcode.

17. Attentive viewers will find that at this time, the "settings" in the phone, there will be a ' developer ' configuration menu.

18. We continue, after you close Xcode, in the ' Applications ' window, find ' RAD paserver XE6 ', double-click to run.

19. Login process I believe we are very familiar with, here is not carefully explained.
Note that we are ready to switch back to Windows, at this time to ensure that the virtual machine in the lower right corner of the status bar of the device icon is highlighted, is connected state. If you are not connected, refer to the previous steps.

20. To minimize the virtual machine, we go back to Windows, open XE6, casually open or create a new project.
Here we use the official demo, we choose XE6 's own Sample\object pascal\mobile Samples\user interface\settings Project this project.
In the upper right corner select ' IPhone ', ' iOS6 ', and then expand ' target platforms ', ' IOS device ', right click ' Target ', select ' Refresh ' and refresh the device.

21. If the network connection between your computer and the virtual machine is normal, the ' + ' sign in front of ' Target ' indicates that the device has been searched.

22. We open ' Target ' and double-tap our phone. Tell XE6 to run the app on our phone. Let's run the project.
To be aware, buildconfigurations select Debug.

23. If your XE6 is the first time to compile the app to a real machine, the XE6 will pause shortly after the project is run, and we need to switch to the virtual machine.
Because at this time the Mac will ask whether to use the certificate we created to sign the program, it is necessary, we click ' Always allow ', then the next compilation of other apps will not have this hint.

24. After we authorize the certificate to be signed for the program, the XE6 will move and continue compiling.

25. At this point, we can see that the item in the phone is already running.

26. This is the real machine and the project has been successfully run on the phone.

At this point, the real machine is connected and running the app is complete. (The above steps also apply to the jailbroken ipad)

Next, we introduce the generation of IPA and install it on other jailbreak devices.

Ps:
---------------------------------------------------------------
Firemonkey Mobile development can add QQ Group: 165232328 (I am not the administrator, just one of the members, this group of experts in groups, looking forward to all of you Delphi enthusiasts to exchange).

XE6 & iOS Development certificate-free real-computer debugging (2): Connect the real machine and run the app (there's a picture of the truth)

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.