|
|
What is winChain Builder?
What it is: It's the easiest possible way to build the iPhone toolchain on a Windows XP/Vista computer. It's a GUI installer for the toolchain which can completely install the whole thing in minutes, as opposed to sitting in front of a bunch of DOS windows trying to build thousands of source code files with confusing UNIX commands.
What it isn't: It's not a magical iPhone IDE or Interface Builder or anything like that. For that kind of stuff, you'll have to wait a little longer...
What is the iPhone Toolchain?
The iPhone toolchain is the bunch of programs the Dev Team and their various accomplices have put together, which can take Objective-C source code that you write using their UIKit Headers (included with winChain) and compile it into an application that you can use on your iPhone.
How Does winChain Work?
- Download winChain from the Downloads section, and then the preBuiltToolchain file here.
- Download WinRAR from http://www.rarlabs.com and use it to extract the preBuiltToolchain. Be sure to right-click the RAR and choose "Extract Here" not "Extract to preBuiltToolchain" or any of the other options!
- Launch winChain.exe and browse to your preBuiltToolchain folder.
- Hit the first button to copy over the files.
- Hit the second button to install Cygwin.
- Hit the third button if you want to install Notepad++ for code-writing.
And you're done!
How Do I Make Projects?
winChain also comes with the winChain Template Generator, which you can use to create a skeleton application that you can write code into and then build easily. Just launch the generator, give it your Name and your Application's Name, choose a folder to put it in ("iphone-apps" in your cygwin folder recommended, or you'll have to edit your Makefile!), and it will make the project for you.
Sign in to add a comment

Hi I have one sugesstion.
Right now(1.0.1), after click "copy toolchain files into place", all I see is the button disabled. Is it normal?? If I wait like 15 mins with this windows on, it will automatically start the cgywin installer?
If so, can you make the cation of the disabled "copy....place" button to like "copying.... will take about 15 mins"? IT is really hard to know if the program is doing something if all it does is disabling the button.
If it is not normal, hmm...do I have a problem?
I had the same problem, I waited for a while and then decided to install cygwin fron its website.
I waited for more than a hour but the cgywin installer never started. and the button for the cgywin installer is disabled from the beginnging and just won't enable.
I have the same problem with the cygwin installer button - it is always disabled! After installing Cygwin by using 'InstallCygwin?.exe' everything seems to be ok. After 4 attempts to compile something for my iTouch I think something is wrong because all compiled application are shown as black windows. Anyone recognise this symptom?
richard you need to chmod the apps i guess.. ;) to 755. That shoud proberly fix yah problem.
Are you guys able to compile simple apps? I can compile a empty class, but as soon as I do something as simple as adding a UTextView tv in the header, I get an error on make. I can provide the exact error when I am doing this again tonite.
When I trying to make an application it says : "bash: make command not found"... any one can Help me please ?
it bacause your environment is not setuped. u need to add to your PATH environment variable path_to_your_cygwin_bin
Hey guys, I can compile an application, it doesn't throw any errors, but now what? I get two object files (as expected) and a new file without an extension. Is this new file the executable? What's a bundle and how do I create one? I've been searching all over the web, and this kind of information is either assumed or incorrect when it comes to the ToolChain? on windows.
thats cool
Add Source installer : http://iphonebaidu.com/app/ Test iPhone - iPhone Simulator : http://iphonebaidu.com/test/ All Software for Apple MAC : http://iphonebaidu.com/mac-iphone/ All Software for Apple iPhone : http://iphonebaidu.com/mac-iphone/iphone.html
Install iTransformy (.swf) view for iPhone : http://iphonebaidu.com/beta/ Forum, DOwnload Themes, Apps for iPhone. http://iphonebaidu.com/forum/
Copyright © 2008 iPhone Baidu! Inc. All rights reserved
My 5 cents for you guys having an issue, 1) looking at the sources (c#) of the winchain, it will never enable the "install cygwin button", so forget about it. when the first thing (copy) finishes, just quit it and install cygwin manuall (the installation file can be located at the winchain/resources dir. installing cygwin is a breeze, let it download from the internet and do its stuff. 2) once cygwin is done, run cygwin.bat it will open a shell try ls (like dir for you window guys). if you see it lists the files you should be fine. 3) run the "template generator" (winChain 1.0.1\winChain Template Builder.exe) now this is a little tricky. I first gave it the C:\cygwin\iphone-apps as a directory, but it turns out the make file they generate expects the files to be located in a directory called by the same name as you indicate your application so, copy all files it created (about 5) to a directory named the same name as your project name (say MyFirstApp0? then cd to that directory from cygwin (cd /iphone-apps/MyFirstApp? in my case) then type make, it should compile the sources (main.m) and link them to create your app. oddly enough the make file creates the application (think exe) in /MyFirstApp?.app (in the root of cygwin) so you'll find it if you ls -l that directory in my case it created two filles in /MyFirstApp?.app /MyFirstApp?.app: total 20 -rwx------ 1 tzur mkpasswd 636 Feb 16 05:23 Info.plist -rwxr-xr-x 1 tzur mkpasswd 13136 Feb 16 05:33 MyFirstApp?
Now its time to move it to the iphone and see if it works, hope this saves someone some time,
--tzurs btw, don't count on exact directory names/files, I'm manually typing it so typos are legit.
Hi!, works with 1.1.4 firmware???.
sorry for my english :S.
Where is the HELLOWORD example ? and how i complie? Thanks
tysayag thanks the info on moving the auto-generated files into a subdirectory of the same name did the trick for me.
I have problem downloading the preBuiltToolChain, I'm always getting all the download slots open for my countries have reach the limit error message, I don't want to install the MegaUpload? toolbar, thus they always not allowing me to download the file. Is there anyway that you can put it somewhere?
I can provide free hosting for the file too, if you have ways to pass it to me, then I will put my file there for those who have difficulties downloading it or facing the same problem like me.
Thanks.
Regards, Jenson
One more question. Is there any continuous development on this project? Since the iPhone SDK is official out for more than one month now. Does this work with iPhone SDK? If not, does it comes with emulator, something like what iPhone SDK includes? Or would it be put in in the next release?
Seems like no one is maintaining this code page?
Hope to hear some great replies soon =)
Regards, Jenson
Problem running compiled apps
I have downloaded and installed winChain 1.0.1 with cygwin and the preBuiltToolchain. I can run the compiler and build the template example. I have also tried to compile a simple hello world. The compilation runs without any errors and warnings (fine so far). When I move the app to my iPhone (using WinSCP) to the applications directory and try to run the app using Springboard the app makes my iPhone freeze. I have to turn off the phone and turn it on again. Does anyone have an idea why the app doesn't work? I have set the file properties to 0755 on the executable, still the app does not work.
I use firmware 1.1.4 on my iPhone.
Best regards, Soeren Greiner
compiled apps runs
Ok I fixed the problem. The fix was to upload (using WinSCP) the iPhone files found in usr/lib and then copy them to cygwin\usr\local\share\iphone-filesystem\usr\lib\
The hello world program now works perfectly with firmware 1.1.4 on my iPhone
Best regards, Soeren Greine
I'm trying to compile the HelloWorldClassic??? sample from Apple iPhone SDK download page, but I'm getting several errors like:
Am I doing something wrong? Thanks
Is there a sample application source code to download and test in winChain? Something like HelloWorld?... Thanks
trying to build application that uses sqlite3 - get error: /usr/local/bin/arm-apple-darwin-ld: Undefined symbols: sqlite3_bind_double sqlite3_bind_int sqlite3_bind_text sqlite3_column_double sqlite3_column_int sqlite3_column_text sqlite3_errmsg sqlite3_finalize sqlite3_last_insert_rowid sqlite3_prepare_v2 sqlite3_reset sqlite3_step collect2: ld returned 1 exit status
what should i add to makefile to link successfully?
can I make dylib with this?
As the cygwin compiler that is being used to compile the objective-c code is for windows( means it is not a cross compiler for Mac OS(iphone operating system)), is the code require recompile before moving the compiled code to iPhone?
I got error when i am creating someting like that: - (void) touchesBegan: (NSSet) touches withEvent:(UIEvent) event { }
-- syntax error in this line. how to create event ?
Everytime I try to access the HelloWorld? project linked from this page ( http://code.google.com/p/winchain/w/edit/HelloWorld ) I get the following error:
Your client does not have permission to get URL /p/winchain/w/edit/HelloWorld? from this server.
I am logged into the code.google.com site using my ID. Any idea why this would happen?
Does this work on the iPhone 3G's with the 2.0 firmware, or is there a new winchain update needed?
I would also like to know if this works for the new iPhone 3G with 2.0(1) firmware?
3G User; Listening...
Hi guys! I'm trying to join in to test this great tools-set.Does anybody know if it works with iPhone 3G version 2.0 platform?
I've installed toolchain with success.I've built the template generated project to see if i get any compiling/building errros and everything worked fine. But when I try to compile a project that uses -framework IOKit i get the following error: "/usr/local/bin/arm-apple-darwin-ld: /usr/local/share/iphone-filesystem/System/Library/Frameworks/IOKit.framework/IOKit bad magic number (not a Mach-O file)"
Did any one face a similar problem?
i have downloaded and installed winChain 1.0.1 with cygwin and the preBuiltToolchaina. After that i created a template project and put all the file in a folder of same name as the project as told by tsayag.
then i tried to make it using make but got following error.
No Rule to make "info.plist"
and unable to compile.
Waiting for comments
Small recommendation, instead of the closed source trial WinRAR, try 7-Zip instead. Its totally free (Open Source and GNU LGPL Licensed), supports RAR, ZIP and a bunch of other formats. Works on XP and Vista (and integrates nicely into Windows Explorer "right click" menus) and even has a complete command line interface for scripting. You can learn more at www.7-zip.org.
Quick question... how do you load apps that you write onto the phone? Do you need to jailbreak or can you load them through iTunes?
Thanks!
Has anybody faced the following issue,
make: No rule to make target /iphone-apps/FirstApp/Info.plist', needed by /FirstApp?.app'. Stop.
Jake.McMillian?: To put the apps you have written on your iPhone, you have to jailbreak it, install OpenSSH from Cydia or the Installer, and then SSH into your iPhone from your computer using whatever SSH client you use (Cyberduck, WinSCP), and then from your iPhone's "/" directory go into the "Applications" folder and copy the .app file you made on your computer into that folder. I think you have to change permissions to 777 but I am not sure. And you then have to restart your iPhone.
I have the same problem as jugnoyasir, when i use the "make" command it tells me " No rule to make target '/iphone-apps/Hello/Info.plist; , needed by '/Hello.app'. Stop." What does that mean?