Create an iPhone development environment for Windows

Source: Internet
Author: User

Basic skills:
The entire process is far from smooth. You need some basic Linux knowledge and patience. If you have never been in touch with Linux, we recommend that you give up.

Preparations:
. Install the wireless route and set the password.
. Configure your iPhone: Setting-General-auto lock-never; Setting-wi-fi.
. Install and update the installer.
Install sources: Community sources & iapp-a-day;
Install the BSD subsystem (in this process, my iPhone seems to have crashed, and press home + power to restart the iPhone)
Install OpenSSH;
(The above work allows you to communicate with the iPhone through WiFi. Setting a wireless route is a little complicated, but you can do it by taking a closer look at the wireless route instructions .)
. Download winscp, a lot of online.
. Winscp usage:
HOST: 192.168.1.100 (from iPhone, setting-> WiFi-> HWR-> IP address)
User: Root (guess !)
Passwd: Dottie (for iPhone, check OpenSSH in installer-> more info)
If you have already done this, go to the following steps.

Step 1: Download acheive.pax.gz.
1. The file name is macosx10.4u.sdk.rar (unzip password: aksblog.co.nr]. After decompression, acheive.pax.gz is obtained.
2. (Note) It is recommended that you have installed cygwin and then run gunzip-C archive.pax.gz | cpio-I in cygwin to get the sdks directory, which will be used later.
Reference: http://www.weiphone.com/thread-48545-1-1.html (thanks to author hwangyinghua)

Step 2: download and install cygwin
1. Follow the instructions in http://wiki.iphonegameover.com/windows_cygwin_binary_toolchain_installation,
(1.exe download setup.exe from www.cygwin.comand run it (you 'd better download it to your local computer before running it ).
(2) During installation, you must specify http://www.iphonegameover.com/cygwinas the network installation source.
(When cygwin provided by iphonegameover is run for the first time, it will automatically download your iPhone system file and install and build the compiling environment)
(From here, make sure that the iPhone is in the power-on status and WiFi and wireless routing work properly)
2. After cygwin is installed, choose Start> program> cygwin bash shell to execute cygwin for the first time.
3. Follow the prompts at http://wiki.iphonegameover.com/windows_cygwin_binary_toolchain_installation.
Note that there is a place for you to enter the root@192.168.1.100 (this IP is the IP address of your iPhone in your wireless network) password, I enter Dottie, you may lose anything.
4. Do you want to install the xcode header files now? ,
(1gz put acheive.pax.gz in the/cygwin/home/user directory;
(2) (Note) create a developer directory under the root directory of cygwin, and move the sdks directory obtained in step 1 to this directory to form the/cygwin/developer/sdks format.
If you do not follow the 2 Special tips in step 1 (not to say that cygwin is installed in step 2, what should I do ?), The first installation may fail, but the iPhone header files are not fixed.
It doesn't matter. You will find the sdks directory in cygwin installed this time, keep it, change the cygwin directory to cygwin1, and repeat Step 2. That's how I came here.
(3) Press 'y' to continue.
5. Normally, many. h installation information is displayed. So far, the iPhone toolchain has been successfully installed.

Step 3: Compile and run Hello World
1. Download the source code at http://iphone.fiveforty.net/wiki/index.php/uikit_hello_world.
2. Make.
3. Use winscp to upload the compiled executable files hello and info. plist to the iPhone/applications/Hello. App.
4. Run./hello in command> openterminal of winscp. Or restart the iPhone and click "hello.

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.