Results 1 to 7 of 7
Discuss iPhone application development on Windows at the iPhone Developer Exchange - Hackint0sh.org; Dear community, I am a windows user / programmer (Visual Studio 2008 / C# / ...
  1. #1
    Newbie Array

    Join Date
    Jan 2008
    Posts
    3
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Lightbulb iPhone application development on Windows

    Dear community,
    I am a windows user / programmer (Visual Studio 2008 / C# / C++ / C) and i am interested in exploring the mac world. So i was wondering if i can use my windows machine (Vista) to make an app or two for my girlfriend's iPhone 2G 8Gb v2.2.1 Unlocked & Jailbroken (Pawn). I know that the sdk is for mac only. Is there any other way? If anybody can contribute to this, please do!



  2. #2
    Newbie Array

    Join Date
    Jan 2008
    Posts
    3
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    nobody??? please?

  3. #3
    Newbie Array

    Join Date
    Mar 2009
    Posts
    1
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    VMWare + Mac OS X Leopard.

    I think there is no other way.

  4. #4
    Newbie Array

    Join Date
    Jan 2008
    Posts
    3
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Is there a VMWare that can successfully run mac OS X???

  5. #5
    Professional Array

    Join Date
    Oct 2007
    Posts
    58
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    9

    Default

    You can use iphone open toolchain 2.0. Although you may spend some time to get it running(well I did).

    Ok, basically the idea behind it is that you can prepare the toolchain to compile your programs natively on the iphone itself. Of course you don't have to use the iphone-terminal to do it SSH-session is quite handy to do all the stuff.

    Well it may sound easy but doing it from scratch actually was quite time consuming and annoying.

    The hard way:
    1. Download iPhone OS 2.0 SDK , file is called iphone_sdk_final.dmg [about 1.3 GB]
    2. Download 7-Zip 4.59 Beta or latest one.
    3. Run 7-Zip and open the downloaded dmg file.
    4. Go to Packages and extract iPhoneSDKHeadersAndLibs.pkg
    5. Open the pkg file in 7-Zip and extract Payload

    UPDATE : You don't need cygwin anymore , because cpio is available on iphone through cydia. If you copy the extraced Payload to iphone/ipod touch you can follow instructions from point 12 directly on your mobile device through an ssh-session.

    6. Download Cygwin installer.
    7. Install and leave all options to default beside including gcc and make in devel section.
    8. Make sure cygwin is running and gcc and make are available.
    9. Download latest sources of cpio [if you are not familiar with unix tools:tar -xvf filename.tar.gz to decompress it ].
    10. Compile it and install it under cygwin (readme files are provided how to do it).
    11. In cygwin:If your cpio is working move the extracted Payload file to some dir and make it your current one.
    12. Now comes a series of commands ,just keep typing them:
    zcat Payload | cpio -id '*.h'

    mkdir include

    mv Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/* .
    rmdir -p Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.0.sdk/

    mv System/Library/Frameworks/* .
    rmdir -p System/Library/Frameworks/

    mv AddressBook.framework/Headers include/AddressBook
    mv AddressBookUI.framework/Headers include/AddressBookUI
    mv AudioToolbox.framework/Headers include/AudioToolbox
    mv AudioUnit.framework/Headers include/AudioUnit
    mv CFNetwork.framework/Headers include/CFNetwork
    mv CoreAudio.framework/Headers include/CoreAudio
    mv CoreFoundation.framework/Headers include/CoreFoundation
    mv CoreGraphics.framework/Headers include/CoreGraphics
    mv CoreLocation.framework/Headers include/CoreLocation
    mv Foundation.framework/Headers include/Foundation
    mv MediaPlayer.framework/Headers include/MediaPlayer
    mv OpenAL.framework/Headers include/OpenAL
    mv OpenGLES.framework/Headers include/OpenGLES
    mv QuartzCore.framework/Headers include/QuartzCore
    mv Security.framework/Headers include/Security
    mv SystemConfiguration.framework/Headers include/SystemConfiguration
    mv UIKit.framework/Headers include/UIKit
    rmdir -p *.framework

    mv usr/include/* include/
    rm -rf usr/lib
    rmdir -p usr/include/

    rm Payload
    tar --group 0 --owner 0 -cvf include.tar include

    13. The end of the hard way: you get your beloved include.tar

    The easy way:
    Contact me via private message and I'll provide you with include.tar. However I'm not allowed to distribute it publicly due to Apple SDK licence.

    Iphone stuff:
    1. Copy the include.tar to /private/var/root [well actually any directory will do]
    2. Now type:
    cd /var
    tar xf /private/var/root/include.tar

    3. For iphone firmware 2.2(and 2.2.1 i presume) you also need to type:
    cd /var/include
    ls stdint.h
    make sure it doesn't exist, if so
    ln -s gcc/darwin/4.0/stdint.h stdint.h

    You now should have the headers for your iphone on your iphone
    4. Run Cydia and install : GNU C Compiler , Make from Development section. You will also need Link Identity Editor(ldid) for signing your apps [though there are other methods to bypass sign-checking I won't discuss it].
    5. Download a helloWorld example i.e:http://antirez.com/misc/iphone-helloworld-1.tar.gz
    6. Extract , enter directory , type make
    7. Copy the created *.app directory to /Applications
    8. Type /Applications/BossPrefs.app/Respring and enjoy your first helloWorld application[of course you need BossPrefs installed].
    9. Your application may not run if you haven't installed at least one free app from iTunes store.

    95% of this instructions are based on Toolchain 2.0 - The iPhone Wiki and Developing for the iphone using the open toolchain and SDK 2.0 headers - antirez weblog so the credit goes to original authors. This is just dumb implementation of instructions I found there.

    Hope sb finds it helpful.
    Last edited by Singaja; 05-25-2009 at 12:18 PM.


  6. #6
    Professional Array

    Join Date
    Oct 2007
    Posts
    58
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    9

    Default

    Has anyone found a solution for some kind of Intellisense under Windows for Open toolchain development? I presume something like this must exist in XCode.

  7. #7
    Newbie Array

    Join Date
    Jul 2011
    Posts
    1
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    I am a windows user / programmer, i am interested in exploring the mac world. i can use my windos 7 i like it..

 

 

Similar Threads

  1. iPhone Open Application Development
    By amitkushvaha in forum iPhone Developer Exchange
    Replies: 3
    Last Post: 05-09-2012, 03:32 PM
  2. iPhone App Development on a Windows laptop
    By Blinky in forum General
    Replies: 1
    Last Post: 10-05-2009, 02:45 PM
  3. Your next step in mastering iPhone application development
    By OliviaVTM in forum iPhone Developer Exchange
    Replies: 0
    Last Post: 09-02-2009, 11:08 PM
  4. Book: iPhone Open Application Development
    By NerveGas in forum Free Toolchain Software (Cydia App's)
    Replies: 6
    Last Post: 02-12-2008, 03:33 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 12:14 PM.
twitter, follow us!