From ModMyiFone - Wiki
This method is outdated now. The new guide is here!
--Cash7c3 00:35, August 3, 2007 (GMT+6)
Intro
IPHUC is the newest version of iphoneinterface created by the devs on #iphone. Special thanks goes to them for all their hard and continued work. This is a guide to teach you how to install IPHUC on your OS X box since the process is a bit long and complicated. Further info can be found Here.
Install xcode
Before we begin you need to install the latest version of xcode developer tools.
Found HERE
Install Macports
We'll need this to install redline and subversion later on in this tutorial.
Get it Here
Install Readline
Step One
Open up terminal on your computer and type:
sudo port selfupdate and press enter
When it asks you for your password type in your user password (it wont show anything as you type that's normal)
The output will show
Step Two
Type:
sudo port install readline and press enter
The output will look as follows
NOTE: If you get error messages about ncurses, you have the wrong version of MacPorts installed. Go back to the MacPorts web page and make sure you get the correct version for your OS. There are separate downloads for OS X 10.3 and OS X 10.4.
Install Subversion
Type:
sudo port install subversion and press enter.
Once again it will ask you for your password and the output is shown below:
Install IPHUC
Step One
We need to choose a place to install IPHUC on our computers. I keep all my iPhone modding tools in a folder called phonedmg. The location of this folder on my computer is /usr/phonedmg/ (my user on this computer is "cash" so the directory is cash/phonedmg/) I made a folder called iphuc in my phonedmg folder to install and run iphuc from. Its location of course is /cash/phonedmg/iphuc. This guide assumes your setup is the same but you can do whatever you want.
Step Two
In terminal switch to the directory you'd like to install iphuc. In my case this is:
cd phonedmg/iphuc and then hitting enter
Now that you are in the directory you want to install iphuc we'll install it by typing in
'svn checkout http://iphuc.googlecode.com/svn/trunk/ iphuc followed by enter
Step Three
You need to put the MobileDevice.h file in the iPHUC directory of your iphuc installation. To get there on you mac open up Finder, click on your user, and then browse to phonedmg/iphuc/iPhone/trunk/iPHUC/
You can also get the latest version of the MobileDevice.h file Here
Step Four
Now lets configure IPHUC:
cd ./iPhone/trunk/iPHUC/ then press enter
followed by:
./autogen.sh && ./configure --with-readline=/opt/local && make
Using IPHUC
As with iphone interface you must jailbreak first (click here if you haven't done that, or haven't done so with the iActivator method - it IS different than the previous method) to browse your phone freely. To run iphuc open up a new terminal window and go to your iPHUC directory
cd phonedmg/iphuc/iPhone/trunk/iPHUC followed by the enter key
Then type in:
./iPHUC followed by enter
Super you're set up and ready to continue modding. Lets move on to Installing SSH.
iPHUC Usage Note
Now whenever you want to access the file system, all you have to do is run iPHUC (by entering ./iPHUC in Terminal like we just described), and then enter in the following command:
setafc com.apple.afc2
NOTE: iPHUC has an error which seems to make the setafc command return an error. if you get the following message when you run the setafc command:
InvalidResponse
AMDeviceStartService AFC: -402653165
AFCConnectionOpen: 0
then you need to enter the following commands:
exit
./iPHUC
setafc com.apple.afc2
and then you should get the following:
AMDeviceStartService AFC: 0
AFCConnectionOpen: 0
Congratulations! You're ready!