Cygwin development platform for Windows iPhone

Source: Internet
Author: User

Cygwin Development Platform (Windows iPhone SDK),--babyfish0226

I wanted to know before the launch of the iPhone, but recently the webmaster ran back to the caster, so there was a thief in the preparation of the iPhone article, but today, I still have a time to finish it.

If you are interested and interested in developing apps on the iPhone, you may already find that, the entire iPhone Development Environment cygwin has already been provided in the region under this website. If you haven't noticed it all the time, now I will show you how to compile and develop Native iPhone programs in cygwin and cygwin environments.

For the average person, the first thing to overcome when developing an iPhone program is the failure of the iPhone toolchain. What is the toolchain of the iPhone? In simple terms, this allows you to compile and develop Native iPhone programs in Linux or OSX systems, you can renew your iPhone-dev official website.

Currently, the iPhone toolchain supports Linux and OSX, to launch windows, you must go through cygwin, our main character, to create a Windows environment. (You can also choose to install VMware or virtualbox to set Linux systems ), why should we choose cygwin to develop the iPhone platform for us? In addition to using Windows, the most important thing is that cygwin does not need to be configured or installed, this allows everyone to learn how to develop the iPhone in the same environment. To do this, you must first sharpen your iPhone, if everyone's use of the environment may be poor due to security issues or different settings, I think there will be a lot more difficulties and difficulties to be met, it is a pity that even before the iPhone program is written, because the development of the iPhone is not as difficult as imagined.

In the early days, I had suffered a lot for the iPhone toolchain, either by installing the Linux system or using cygwin kernel, even if I try to launch an iMac, I want to quickly enter the iPhone development world. Unfortunately, all the efforts are still lost. Fortunately, the cygwin version of the iPhone toolchain was successfully released by a remote webmaster at a certain conference. This is an important start, this is the main reason why I can write this article.

Now let's get started quickly. First of all, you must use the cygwin version in our region.

The following figure shows the case of accessing sharemewhere the iPhone e-sdk-cygwin-3.0_iphonet=rar case is reported (you must first refer to the shareme member ).

There are no small number of cases. There are 159 MB of data. Please wait patiently. After the preparation is completed, you can directly resolve the case and suggest setting the route to D :/, it does not matter if you want to store it anywhere.

After the solution, you will find the cygwin information under the root directory of D:. Before entering cygwin, we must first set the environment change data, use the text processing tool to open the profile issue under D:/cygwin/etc/and locate it.

Path =/usr/local/bin:/usr/x11r6/bin:/Opt/iPhone/bin: $ Path
Export path

Then, the cygwin. Bat statement under the "D:/cygwin" data item can be added to the development environment of cygwin.

Next, we will use some simple Linux commands. If you are not familiar with these commands, please use Google to check the commands. I will not explain them more here.

 

If you see the Hello Message on cygwin's webpage, congratulations! Welcome to the world of iPhone production. For any program, we can't say that we are the first app on the iPhone, helloworld!

 

We have quickly switched to the "hello" project. At this time, you will find that there are currently eight records in the "hello" project, as for the functions and usage of these eight cases, I will introduce them in the subsequent documents, the clear examples here are the same as those you see in the Windows case manager. For example

/Opt/iPhone/Hello depends on D:/cygwin/opt/iPhone/Hello

In addition, because the iPhone program is a descriptive statement, we directly use a text handler (notepad or notepad ++) now we can launch helloapplication. m:

You can change the above text to whatever you want. Here, you can change Hello world to my first iPhone apps, save the text, and then return to the cygwin operation plane.

First, clear the existing sequence storage. In the command column

Make clean

Then we started to develop and generate the native formats available for the iPhone.

Make

If the response is correct, no response will be generated, and the response of the process will be the same as the response.

Congratulations, you have completed the first native program release on your iPhone. Now you only need to upload your program to the iPhone.

I just mentioned that there are eight cases under the "hello" item, some of which are original records, some are post-production results and response rows, if you do not want to show your original records to others, you must pick out the "necessary" program case.

We will first create a message named hello. app and upload hello and info. plist to your iPhone Application category.

After uploading, remember to modify the photo cases and resource rights of the hello. App. You must open the apply in the lower left corner.

Next, restart the iPhone (or use the restart springborard function in the summberboard), and you will be able to see the hello program release on your notebook, because we have not specified an alarm for the graphic, you may see a problem at the moment. Just give it a try.

 

Perfect! Although at present, there can only be a selection function, but this is a local iPhone native program. Is there any dynamic feel? If you really want to develop your iPhone, there will still be a long way to go. For the webmaster, you are still learning the same thing, let us work together!

 

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.