Sharing the Code

Programming stuff that might be useful to others

Developing iPhone apps on a Toshiba Protege m200 laptop

I wanted to have a go at developing an iPhone app without having to go out and buy a Mac so I managed to setup a Hackintosh on my Toshiba Protege m200. Below is how to do it. Having set everything up I found when rebooting for the 2nd time that I lost network conectivity so it’s best to download all your apps like Firefox after you’ve installed the iPhone SDK and before you shutdown or restart the computer. I got most of this information from this forum post. I haven’t been able to get an application working on an iPhone so I think this setup is only useful when targetting the simulator.

1. Download Kalyway 10.5.2 from a torrant site and burn it onto a DVD

2. Create an unformatted 35GB partition on your hard disk using administration tools in control panel.

3. Plug in an ethernet cable, WiFi requires an extra driver download and only works with unencrypted networks.

4. Boot from the Kalyway 10.5.2 DVD, press F2 to boot from the external DVD drive.

5. Once the DVD has loaded select Disk Utility from the menu at the top and format your MacOS parition MacOS Extended (Journaled) option

6. Quit from Disk Utility and continue the installation process

7. Click on the Customise button and use the following options:
Additional Fonts (leave unchcked)
Language Translation (uncheck)
kernel_9.2_speedstep (check)
NVinjectGO (check)
NVIDA_AC97_Audio (check)
Network_drivers (uncheck all)
Mobo_Chipsets (leave defaults)
Thirds_Applications (leave defaults, install what you want)
SSE2_Jas1048_ACPI_APIC (check)
Patches (leave defaults but uncheck Francais_pc_keyboard_layout)

8. After installation and when it starts booting Darwin press space and then type:
fsck -fy
mount -uw /

9. Type yes to all except the “NVinject_Natit_ATYinject” driver, in which you type no

10. Then type:
pico /Library/Preferences/SystemConfiguration/

11. Underneath <key>Kernel Flags </key> change <string> </string> to
<string>”Graphics Mode”=”1400x1050x32″</string>

12. press CTRL+x to exit and y to save

13. Type: exit

14. At registration screen press ALT+q and then press the skip button

15. At this stage you can trick MacOS into thinking it’s version 10.5.3 or install the upgrade. With the “trick” you can’t compile iPhone apps for the device but you can for the simulator. With the upgrade the LCD monitor will stop working and you will have to plug in an external monitor before you boot into MacOS. While it should be possible to compile and deploy onto a jailbroken iPhone with these instructions without a developer’s certificate, the apps I compiled wouldn’t run on the iPhone. I’m not 100% sure but I’m guessing it might have to do with the fragile state of the hackintosh. You will have to get a real mac at some stage anyway if you want to publish the app in the app store since the developer’s certificate requires real Apple hardware.

“Trick” Update:

Open the terminal program (Applications > Utilities > Terminal) and type:
sudo -s
pico /System/Library/CoreServices/SystemVersion.plist
and change the 2 instances of 10.5.2 to 10.5.3
press CTRL+x to exit and y to save

Real Update:

Find Kalyway 10.5.3 combo update on a torrent site.
Install Kalyway UpdCombo 10.5.3.pkg but don’t press Restart.
Install Kalyway 10.5.3 Kernel.pkg but don’t select any kernels.
Restart and plug in an external monitor.
At reboot type: update -v

16. Download the iPhone SDK and install it.

17. If you are getting kernel panic boot the computer in windows, hibernate or shutdown and
then boot up in MacOS – you will have to do this each time. Also after kernel panic you will lose
network connectivity so you will have to use a thumbdrive to transfer downloaded files. You might need to change the resolution on the external monitor by going to System Preferences on the dock and then Monitor. It supports my widescreen 1680×1050 monitor, though in Windows it doesn’t.

Comments are closed