|
HowToUse
A quick walkthrough on winChain 1.0
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?
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?
Is this project applicable to Apple App Store? I mean, if I build an application with it and I register (and pay) to the iPhone Developer Program, I will be able to publish applications under App Store? All this because I don't have a Mac, so I can't use the iPhone SDK (and I don't want to buy a Mac just for this...)
Thank you!
I also had the "No rule to make target" for Info.plist - I managed to fix it, though perhaps not in the most elegant way.
Note : my Cygwin directory is at D:\cygwin
The Makefile that is created by winChain Template Builder uses UNIX-style paths and expects the source and compiler to be in certain locations. You can change those paths, but my directions are based on the default Makefile created.
1. First, copy D:\cygwin\usr to D:\usr
2. Create a directory D:\iphone-apps and copy your app directory and files there
3. Open a Bash shell by running D:\cygwin\Cygwin.bat
4. Change directory to your app directory --> eg. cd /iphone-apps/MyTestApp
5. Run 'make'
The output files will be in D:\TestApp.app and the files main.o and TestApp.o will be in D:\
As I said, not very elegant, and I hope I can set it up so I don't need to copy all the 'usr' directory files, and also make the output files go somewhere more sensible.
guyz
i'm having issues but i think it's something small so hopefully someone can help me out real quick...
i've got winchain,cygwin and winscp installed all good for iphone/touch dev on my vista laptop...bsdsubsystem,boss prefs and ssh installed on my touch...
i can get a template working and compile it with cygwin with no errors :)
so i end up with a MyApp?.app folder with 2 files inside an executable and the Info.plist (is this correct ? should there be any other files in there? .h or .m files?)
the problem comes when i SSH into my touch and upload the MyApp?.app folder...
i get an error for the Info.plist...says it won't copy over for some reason but if i upload the other version of the plist file in my iphone-apps/MyApp? folder it's ok...wierd..
i can see my app on my ipod touch but when i load it...it goes to another screen for 2 seconds then return to the home screen...(so it's not stable and never stays in the app itself)
however...i'm not putting any code (like helloworld) or anything into the app... is this my problem???...do i have to have code in the app for it to correctly load ?
maybe i'm not uploading the MyApp?.app folder correctly...i'm using WinSCP...and i've read stuff about permissions (CHMOD 0755) and such.....i guess i've got to apply the permissions settings for the entire folder (how do i do that ?)...thx
also...if anyone could post some code with a simple label with hello world so i can test my app that would be awesome....
one more thing...does that hello world code go in the .h file or the .m file ???
i'm new to iphone dev...learning...once i get a working hello world i'll figure out alot more...u all know how it is...
thx in advance...
defyant
After jailbreaking my iPod Touch 1G with 2.1 firmware, I copied my app over to the iPod but despite my best efforts could not see it on the iPod "desktop". I checked permissions, I rebooted the iPod but still no luck. Then, by chance, I installed another program using Cydia, and like magic my app (and the installed program) were both there! I'm going to look through the Cydia source code and see if I can't figure out how it did that.
And by the way, the template that comes with winchain is unnecessarily difficult to build. If you just want to get something going for testing, try this : http://safari.oreilly.com/9780596518554/the_second_most_useless_application_e
No Makefile necessary, just open the Cygwin bash shell, set up your path to include the arm compiler, run one command to compile, and it works!
Now just copy any other Info.plist you can find and change the appropriate entries. These are the only two files which are necessary for a working app.
Well, the programs I compiled with winchain simply do not work on my iPod Touch with 2.1 firmware. However, I did successfully compile and install an app using this page : http://antirez.com/page/iphone-gcc-guide.html This was done by using a compiler on the actual iPod itself.
The only things I had to do in addition to those instructions were to install "make" and LDID (it's called something else though) using Cydia.
And then my app wouldn't show up on the iPod, the same problem I had before, so I had to use Cydia to install something (anything) and then it showed up.
That's my journey so far - from jailbreaking (QuickPwn on the Mac, no issues) to finally compiling and installing an app. Next step : writing my own app and hoping it works.
with my iphone 2.1, i was able to get the hello world app compiled ( i also added some code to simply print hello world ). Same story with the app not appearing at first... i think its due to the cache of the installed files list ( i recall when i jailbroke, cydia and the installer did not show up til i deleted a cache file..which one i can't remember ). Unfortunately, the program never actually runs... it looks like its about to run, and then it returns to the desktop. I tried sorengreiner's solution of copying the iphones /usr/lib to C:\cygwin\usr\local\share\iphone-filesystem\usr\lib, but then my app would not compile anymore.... Now i'm off to try ihayes2000's suggestion..
I can confirm ihayes2000's findings. I tried compiling using the pre-built winchain and it worked successfully, but attempting to run it on my itouch does not work. For now it seems compiling directly on the iphone/itouch is the quickest way to get up and running.
After I click on the first button to copy over, the second button was still disabled ? What now
I want to use the gcc w/o the cygwin installation. But I get: arm-apple-darwin-gcc: installation problem, cannot exec '/usr/local/bin/arm-apple-darwin-as': No such file or directory
How can I make it ues the programs from current directory instead of the hardcoded /usr/local/bin directory?
@hoangkent - the second button, to install Cygwin, never becomes enabled. Go to the Resources directory in the extracted winChain1.0.1 and install it from there. Make sure your install goes to the same place where the copied files go (this is a problem I've had), which is usually C:\Cygwin
@g... - you have to have Cygwin, as it uses a Win32 compatible DLL to emulate Unix commands and calls. The compilers/linkers etc all run in the Unix format rather than windows so you need to install it.
Several other people have noted that the application will not run on the device - the IBM tutorial (a .pdf file, google for it) to get the iPhone toolchain running under Eclipse on Windows or Linux environments has the explanations for this. The first is that the iPhone application loader is expecting our new program to be signed. You need to use the LDID program (ihayes2000 mentions this) in order to sign the app so it will run. Unsigned apps will give a Killed response in the console (if you have SSH'd to your iPhone) or just fail if you use the GUI. The IBM tutorial also gives a method for uploading your custom apps to the device - I'd suggest checking it out for more details instructions.
Hello,
I see iphonebaidu is still down. Would anyone know of a mirror site or some other place where this stuff is available?
Thanks
Those who cannot run their 'HelloWorld?' make sure to check up you Info.plist. If you have <key>SignerIdentity?</key><string>Apple iPhone OS Application Signing</string>,just remove these two lines.Hope it works!
OK, I want to use the compilers with cygwin, but without "bash". So, I want to call g++.exe directly, but I get: arm-apple-darwin-gcc: installation problem, cannot exec '/usr/local/bin/arm-apple-darwin-as': No such file or directory
even if I put the arm-apple-darwin-as.exe in the g++ directory it's not working. The path "/usr/local/bin" seems hardcoded. I also tried AS=... without any luck.
No rule to make target - explanation
For winchain templatebuilder created source
1) create application name folder where the source is located
2) move all source file to "MyfirstPrg?" except Makefile 3) run makemake will do 1) will create folder <applicaitonname>.app in cygwin folder 2) compile objects would be in /cygwin folder
The reason why the default generate Makefile from winchain Template Builder generates them in / is because there's two environment variables that it expects: CONFIGURATION_TEMP_DIR and BUILT_PRODUCTS_DIR. Since you probably don't have them, the default to empty, which causes the files to be built relative to /. The easiest way to clean this up is to directly modify the Makefile and add the following two lines after the line that begins with SRCROOT=... :
This will keep the generated files all nice and localized.
A note for Vista (32-bit) users: If you have problems starting up Cygwin.bat, it's because you need to run rebaseall first. Start up cmd.exe (with admin rights) and then cd to c:\cygwin\bin. Now run "ash ./rebaseall".
Note: If your app after being copied to /Applications doesn't work, it's because Springboard needs to rescan to detect that a new app has been added. To do this,
Also make sure you have a icon.png file in your HelloWorld?.app directory. Copy one from one of your existing Cydia installs.
I give up. I tried to use prebuiltToolchain_v1 and it doesn't seem to work on my iPhone 3G (2.2 firmware). As ihayes2000 pointed out, fraganator later on, and now me: just forget about it for now and use this method here (repeated from above):
The guide assumes that you're working as 'root' though which sounds a bit dangerous to me but hey, it works. :)
Hello. All works fine but if i want to start the Program "TheFirst?" via the SSH then the SSH-Console says "killed" instead of "Hello World"? Please Help me
Got the gcc compiling on my iphone too. Works great. But need some classes with standard button/toolars etc. When i download the small sample apps from apple dev. I cant get them compiled. Allot of errors. Is this because their sourcecode contains stuff that will only compile on mac or what ? Got the bondfire app from appsamuck.com working. But when i try something with toolbar or something with multipule views or classes it wont compile. Suggestions? I can post errors if that helps
did anybody try a code with opengl?
I was succesfull in installing Cygwin and preBuiltToolchain, also create template and compiled .. got app created with charm..but how can we test its OUTPUT RESULT..is there any emulator which can be downloaded...or any other alternative Please help.
I downloaded the preBuiltToolchain.rar file and unrared it to C:\Src\iPhone\preBuiltToolchain. I found that the winChain "Copy toolchain files into place" would not work from here. I had to move the preBuildToolchain folder to C:\ - I think winChain basically just renames this folder to cygwin.
I also met the issue like "make: No rule to make target /iphone-apps/Test4Apple?/Info.plist', needed by /FirstApp??.app'. Stop. " and try to fix it. The root cause of this issue is that the name of app folder you create in iphone-apps is not the same with the app name you fill in the project name in winChain Template Builder.exe. For example, I create a folder Test in /iphone-apps and then I run winChain Template Builder.exe and have my project name as Test4Apple?. Then when run make , there will be the message as mentioned above. There are at least 2 ways to fix this problem : 1) make sure the name of the folder and project name are the same, or 2) in the makefile change the SRCROOT to the right value. For this example , SRCROOT=/iphone-apps/Test
when you are installing cgywin dont forget to install objC packs , gcc++ openssh and opensll packs if you want to build a new toolchain from ipsw files . change ipsw to zip then use decrypt keys of iphone os firmware....
for more information about developing native iphone app on windows
read this pdf
http://rapidshare.com/files/192785342/os-eclipse-iphone-cdt-pdf.pdf
I was succesfull in installing Cygwin and preBuiltToolchain, also create template and compiled .. got app created with charm..but how can we test its OUTPUT RESULT..is there any emulator which can be downloaded...or any other alternative Please help.
you need to add your app to your iphone via ssh or iphonebrowser under applications directory.. read the pdf above. it explains nearly everything.
I've installer the toolchain following each step. i've used de template builder to create an app in C:\cygwin\iphone-apps\HelloWorld? i launch cygwin go to the source path but when i run make, i' ve a command not found!! i've added the path environment variable to the bin directory of cygwin.
any help?
thx
I've finally make it works with a re-installation. where can i find some source (helloworld for exemple)? i 've download the source from Apple website but can't find how to compile it ...
Hi Gurus, I am new to winchain, and I desperately need your help!!!
I have installed and configured winchain1.01 on the Windows vista OS, and now I can create some sample programs using template such as 'helloapp'.
However, when I try to compile 'SampleCode? MoveMe?' from Apple, there comes an error as below; main.m #import <UIKit/UIKit.h> #import "MoveMeAppDelegate?.h"
int main(int argc, char argv) { pool = alloc? init]; int retVal = UIApplicationMain(argc, argv, class?); release?; return retVal; }
MoveMeAppDelegate?.m
#import <Foundation/Foundation.h> #import "MoveMeAppDelegate?.h" #import "MoveMeView?.h" #import <UIKit/UIKit.h>
@implementation MoveMeAppDelegate?
@synthesize window;
- (void)applicationDidFinishLaunching:(UIApplication )application {
}- (void)dealloc {
} @end 错误如下: mkdir -p / /usr/local/bin/arm-apple-darwin-gcc -g -O2 -Wall -c /iphone-apps/MoveMe?/MoveMeA ppDelegate.m -o /MoveMeAppDelegate?.o In file included from /iphone-apps/MoveMe?/MoveMeAppDelegate?.m:48: /iphone-apps/MoveMe?/MoveMeAppDelegate?.h:57: warning: Mac OS X version 10.5 or la ter is needed for use of property In file included from /iphone-apps/MoveMe?/MoveMeAppDelegate?.m:49: /iphone-apps/MoveMe?/MoveMeView?.h:57: warning: Mac OS X version 10.5 or later is needed for use of property /iphone-apps/MoveMe?/MoveMeAppDelegate?.m: In function '-[MoveMeAppDelegate applic ationDidFinishLaunching:]': /iphone-apps/MoveMe?/MoveMeAppDelegate?.m:59: error: 'UIScreen' undeclared (first use in this function) /iphone-apps/MoveMe?/MoveMeAppDelegate?.m:59: error: (Each undeclared identifier i s reported only once /iphone-apps/MoveMe?/MoveMeAppDelegate?.m:59: error: for each function it appears in.) /iphone-apps/MoveMe?/MoveMeAppDelegate?.m:64: warning: 'UIWindow' may not respond to '-makeKeyAndVisible' /iphone-apps/MoveMe?/MoveMeAppDelegate?.m:64: warning: (Messages without a matchin g method signature /iphone-apps/MoveMe?/MoveMeAppDelegate?.m:64: warning: will be assumed to return ' id' and accept /iphone-apps/MoveMe?/MoveMeAppDelegate?.m:64: warning: '...' as arguments.) make: /MoveMeAppDelegate.o? Error 1 ~ANY ANY ANY advices will be highly appreciated!!!
And if anyone ever have compiled it before, could you send me a sample code?
MANY thanks inadvance~
hey guys, i have a problem i could not find on google etc, i already get an error when i try to start the winchain.exe ( error in application 0cx0000135 ). anyone here can help ?
greetings from ger, luis
for additional info : win xp service pack 3 on an intel dual core
I have looked at the comments above and I saw someone asked a question like this:"after click 'copy toolchain files into place', all I see is the button disabled".But there wasn't any answer that could exactly resolve this problem.I also found the second button "Install Cygwin Environment" was disabled.How can I do?Would anyone who have installed the environment successfully help me?Please!
to install cygwin just go to resources folder and run installcygwin.exe
But when I ran installcygwin.exe,it asked me to choose download site.What site should I add?Thank you, ozcanarslan.
I really don't know how to directly run installcygwin.exe to install cygwin successfully.I never succeed.Anyone who can help me?I've tried lots of methods for a month,but never succeed.I really don't know how to solve it.Please tell me the detailed method if you know.Thank you!
Unless I'm mistaken, preBuiltToolchain is for an old version of the iPhone OS, therefore you will not be able to run apps on iPhone 2.0, because they require signing. It would be nice if some one updated the preBuiltToolchain for iPhone 2.0, because building the toolchain on windows is a bloody nightmare
Can anyone give me the link where to write code and build and create iPhone application using this? Can't we install&use application on iPhone 2.x ver device if we create thru winChain?
Also please tell me if any other Windows OS software tool where i can write code and create an iPhone based application(for iPhone 2.0) like this on Windows OS env itself?
Hi prajonpri9, like I said this won't work for iPhone 2.0, it's for previous 1.14. The only way to get a iphone toolchain to work on windows is to build it yourself (not an easy task). You can try these instructions: http://afternoonnap.wordpress.com/2009/01/03/setting-up-iphone-toolchain-locally-on-windows-using-cygwin-etc/ (Personally, I was not able to get them to work)
I'm trying to use a UIAlertView but I keep getting "'UIAlertView' is undeclared". Is the definition for UIAlertView actually not there? What am I doing wrong?
I am currently adding additional code to the winchain builder to automatically download the whole thing and install it. On the other hand i begun to make some improvements, i already build in a connection to the iphone and a Tree to manage projects, compile them and move them to the iphone. I worked within the winchain project and added this new stuff
Anybody want to collaborate ?!
Put the code in a repository and everybody will take a look and can collaborate with you.
agreed - repository
The biggest problem is here: compiled & signed (with ldid -S) code doesn't run on iphone, because the ABI has changed (since 2.0 I guess). And the '-fobjc-abi-version=2' key to gcc says it only works under MacOS X 10.5. Blahhh. Wtf! Someone can fix it?
Anybody able to run their apps on windows somehow?
Hi.. When I hit the Button Copy File at the Place... it says Error: Does the folder "cygwin" exist in your Root? then remove it first? I looked over my C: but there is no such folder? can anyone help please?
I've decided to buy a 15" Mac Powerbook. I will get a 500GB drive and use 200GB of it for Mac OSX and 300GB for Windows 7. I need a laptop, I need Windows (for all of my applications) and I need Mac OSX for iPhone development. Dual booting will give me the best of both worlds on a highly rated notebook. I justify half of the nearly $2,000 investment as the cost of iPhone development and the other half as my need for a Windows notebook.
After spending nearly a week investigating and trying every way of developing iPhone apps on a Windows platform (with limited success) I am on the verge of giving up. Even if I get this winChain working flawlessly I will still be stuck with an obsolete SDK (iPhone 1.14 while iPhone 2.0 has been superceeded by iPhone 3.0). Most examples just won't compile. Many frameworks and libraries aren't available. I am not learning iPhone app development. I am learning a whole bunch of stuff that I don't particularly want to learn. Even if all of the iPhone SDK and IDE (including XCode and iPhone simulator) was ported and ran flawlessly under Windows or Linux one would still not be able to sell one's app on Apple's App Store. I do not agree with this but that's just the way it is.
If you want an open environment look at Google's Android. This looks like it has the potential to be a serious rival to the iPhone without Apple's "big brother" tactics.
As for now I love my iPhone and it does have a serious market share.
It has been an interesting but frustrating journey.
Ok so ive got everything installed but how do i actullay compile everything.
I'm getting the same error "bash: make command not found"
One of the answers says to: "u need to add to your PATH environment variable path_to_your_cygwin_bin "
How do I add the PATH?
Can this be used as a tool to make legitimate iPhone Apps at all? Can I use this to write working code on windows that I am able to copy over to a mac computer and send off to get approved for the app store? Thank you.
Okay, I know this is going to sound REALLY stupid, but what type of code does it require to actually make the apps? I just want to make a simple app that includes tabs that link to Twitter, a website, a YouTube? channel, and maybe a contact tab that opens the Mail.app if it's not too complicated. What I want to make is similar to this: http://www.youtube.com/watch?v=nwswa2Sq7LY. Any help is greatly appreciated.
I believe it uses the language "objective-c" I dont really know right now since I cant compile and am trying to compile before making the program.
the code made on windchain can be later used with xcode on mac and compiled to make an iphone app?
How to install ? where to download the iphone emulator ?
Can you make and app on this then sell it to on the app store
For what I understood reading around the Net:
So all of this implies that you would need at least 700€. Or maybe also: 99€ and a friend that can borrow you a Mac :)
any different news would be welcome, btw... :\
Interesting: Developing with Eclipse/CDT (Linux/Windows)
http://theappleblog.com/2008/10/07/ibm-extends-iphone-development-to-windowslinux-programmers/
(check the comments section for the actual tutorial)
Hi guyz !
Successfully installed the toolchain, compiled a 'console' "hello world" and it worked ! Cool ! But whenever i try a GUI app, it fails to run on my 3gs, so my question is : what version is the installed SDK ? :)
I clearly doubt it's the 3.1, for sure. Has anyone any ideas on how to install the latest SDK ? ( D/L the .dmg, but the headers and libs are in .pkg format, surely some linux thing )
Thx a bunch