Flex 4.5.1 IOS development series (1) Development Environment setup

Source: Internet
Author: User
Tags filezilla
1. Development Tool 1.1 mac 10.7 Development Environment

This address is used to download vm8 and mac 10.7 virtual images. Http://bbs.pcbeta.com/viewthread-937060-1-1.html.

Note: The operation in Read me.txt must be followed. Also, I tried it. xp won't work, so I don't have to try it. I want to install vm8 in windows 7 and open it. When I opened it, I encountered an error similar to "usb or something". After searching for a long time, I set it here on the VM and set it to "Off. After arriving at the Apple system, it will take a while to start loading slowly. There are also virtual machine settings. The downloaded image is set to 4 cores and 4 GB memory. If your machine does, you don't need to change it. Otherwise, you can change the settings on your own.

1.2 mac 10.6 Development Environment

In 10.6, it will be faster. Http://uickier.blog.163.com/blog/static/164850172201161291645885/of Snow 1.6 /.

Here is an attachment for installation. And the files required for installation are included in the attachment.

1.3 install Adobe Flash builder4.5

Open the https://www.adobe.com/cfusion/tdrc/index.cfm in a mac browser? Product = flash_builder & loc = cn, you can download it to the mac, and click Install.

1.4 communication between mac virtual machines and hosts

To copy files or the like is still very troublesome, my measure is qq communication, if you encounter large files is to use filezilla, tools, http://filezilla-project.org/here to download the client ftp tool, then, your host will have a server. I am using serv-u, this is http://www.serv-u.com /.

2. Development 2.1: Develop a simple interface in Flash builder. Then deploy it on the iphone or ipad.

In Flash builder select, new | new Flex mobile phone project

Click Next,

 

Other steps are to be completed.

 

On the Design page, place a button and click it to display the number of clicks on the label.

 

 

Click Run. This is displayed on the simulator of flash builder.

 

 

 

Then we export the release version.

:

 

 

 

Click Next to generate several files under bin-release-temp.

 

 

 

 

 

The above certificate and configuration file are required for iphone development. The specific process goes to the Apple website to become an apple developer.

 

2.2 compile the ipa File

At the beginning, I took a lot of detours for compilation. When compiling in the development environment, it has always been 0%, and it has never been successful. Therefore, the command line is used for compiling. Open the terminal in mac, which is in the application | utility. Cd to adboe flash builder \ sdks \ 4.5.1 \ bin. First open the input command: sh adt

 

 

 

 

Indicates that the adt command can be executed normally.

Then type:

Sh adt-package-target ipa-test-provisioning-profile embedded. mobileprovision-storetype pkcs12-keystore cbmland.com. p12 AIRLinux. ipa AIRLinux-app.xml AIRLinux.swf

 

1. ipa-test is used for testing, and ipa-debug and ipa-app-store indicate the output of appstore. I am using it, and appstore is the smallest, it is also the fastest running speed.

2. embedded. mobileprovision is the configuration file.

3. cbmland.com. p12 is the p12 authorization file.

It is also important to note that it takes about half an hour to compile the command line. So don't worry.

2.3 install the ipa file on the ipad

In fact, it cannot be installed. Because the ipad requires jailbreak. So I found the jailbreak ipad and found it was running fast.

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.