Setting up Theos with the iOS toolchain for
Windows and the iOS 7.0 SDK
Windows and the iOS 7.0 SDK
Cgwin
The toolchain requires Cygwin, an awesome piece of software that provides a Unix environment on Windows. Grab the appropriate setup program for your system architecture from cygwin.com/install.html and run it. You’ll be greeted by the standard setup welcome page, followed by a request for where to download packages from. You’ll want to stick with the default “Install from Internet”. Next your way through until you get a list of sources – you can pick any of them; preferably one closer to you. After downloading a list of packages, the setup maximizes to show you a full list of available packages:
Here’s what you’ll need to search for and install:
- git (under Devel)
- ca-certificates (under Net)
- make (under Devel)
- perl (under Perl)
- python (under Python)
- openssh (under Net)
Toolchain
If you allowed it, the setup program dropped a shortcut to Cygwin Terminal on your desktop and/or Start menu. (If not, you can manually launch C:\cygwin\bin\mintty.exe.) Launch either one and you’ll be greeted with a command line (bash):
From here, we’ll create the directory where theos will live in, and clone it from coolstar’s fork:
- git clone -b windows git://github.com/coolstar/theos.git && mkdir -p theos/toolchain/windows
Next up is the toolchain itself, which will take a while…
- git clone -b x86_64 git://github.com/coolstar/iOSToolchain4Win.git theos/toolchain/windows/iphone
SDK
You can download SDK in http://iphone.howett.net/sdks/
Type in cygwin:
- mkdir theos/sdks
You’ll want to enter the path to Cygwin (unless you changed it, that’s C:\cygwin on 32-bit Windows, or C:\cygwin64 on 64-bit Windows), followed by the path to theos’ SDK directory, and the directory name: home\UserName\theos\sdks\ Copy file extracted in here (Ex: iPhoneOS6.1.sdk)
Try it!
Close this Cygwin window and you’re setup!
To Use theos, just type in this command to a new Cygwin window (the rest is as
usual):
- ~/theos/bin/nic.pl
0 comments: