PDA

View Full Version : iPhoneInterface Error: AFCFileRefOpen: 7 (was: AFCFileRefOpen: 7)


nnny
07-27-2007, 10:53 AM
I can't carry out the putfile command in iPhoneInterface without getting this

AFCFileRefOpen: 7

I need to put the services.plist on my iPhone and I can't

also I can't return to jail using iActivator what should I do

What should I do?

kurro
07-27-2007, 11:57 AM
This happened to me when breaking jail with iActivator and using iPhoneInterface.

My solution, which works great, is to break jail with iActivator, and then use iphonedisk to carry out all file operations, eliminating the need for iPhoneInterface (well, for getfile and putfile). Basically, iphonedisk will allow you to mount your iphone as a drive in /Volumes/iPhone and you can use standard commands like cp, vi, etc to do things.

Be careful though...it's tempting to just use Finder to move files around, but it seems that file permissions are not being preserved when using Finder. So, stick to the terminal.

Get iphonedisk here: http://code.google.com/p/iphonedisk/
You'll have to download/install MACFuse, and then download the source for iphonedisk and compile it. It comes with a handy dandy mount script to mount the phone for you. :)

DrFun
07-27-2007, 12:39 PM
This also happened to me.
I have tried the iphone disk with out any luck.

Another was to get around this is to put you phone in restore mode.
Launch iTunes, iTunes will see that your phone is in recovery modes.
Choose "restore".

Now if this is a ATT activated phone then it will do a couple reboots the iTunes will ask you to choose a backup from the last time you did a sync.

You should still have all your contacts and stuff. Once its done then check to make sure iTunes see the full space on your phone. I have had it happen were it only came up as a 300mg drive. Dont panic, just do the same thing by putting your phone in restore mode again. Sometimes it works on the first shot, and other time you might have to do it again.

If this is not an activated ATT phone then after the restore you will have to activate the phone the same way you did before or try iActivator this time.

Make sure you put your phone back in jail after you activate it (now this im not sure of) and hopefully the next time you run iTunes it was then prompt you for the backup restore?

I'm not sure, I have an activated phone. But an idea might be to leave itunes up but stay disconnected from the internet. After the reboot were the phone say not activated then use iActivator, when the final reboot happens itunes should see it then move on to you picking the restore from the last sync?

nnny
07-27-2007, 08:35 PM
How would I compile the Iphone disk source.

Also, my itunes does say my iPhone has a 300mg drive

Is there a way to restore it without losing all of my songs and settings
Update: If quit iActivator
then open Itunes
then quit Itunes and restart the iPhone and then run iActivator I can Return to jail
But still with iPhoneInterface I get that error

kurro
07-27-2007, 10:35 PM
To compile the iphonedisk source, you must first download it via subversion (svn). If you don't know what subversion is, then you should just download each file through your web browser. When you download extension-less files (Makefile in particular), your browser might try to add a .htm extension. If it does, remove it.
http://iphonedisk.googlecode.com/svn/trunk/

After you have the source downloaded, go into that directory via a terminal and type "make". Watch some things fly, and then you should have the iphonedisk binary. Now you can use the mount script. If you downloaded via the browser, the mount script probably won't have execute permissions, so you may need to type "chmod +x mount.sh".

Just type "./mount.sh" and it should mount the iPhone as /Volumes/iPhone. Remember that all interaction with the phone should be through the terminal. You can use Finder, but there are bugs here and there.

Hope that helps.

nnny
07-28-2007, 02:20 AM
Is there anyway to be able to use the putfile command without getting this error?
Does anyone now why this happens and how I can solve it?

Thanx

Joe.lipinski
07-29-2007, 11:07 AM
Experiencing the same issues... broke jail using iActivator, used terminal to turn iphoneinterface... cd'ed to the correct directory (Applications) putfile HelloWorld.app and got iPhoneInterface Error: AFCFileRefOpen: 7. I am running a mac mini (ppc) with tiger. iPhoneInterface is version 1.1. Any help would be great.

I also tried iphonedisk and could not run ./mount.sh got a few errors... I have macfuse installed. Guess I will try to do this on windows.

slider10
07-30-2007, 02:27 PM
I'm getting the same error! Talk about annoying.

I'm going to try the iphonedisk method later on today after work. Hopefully that will get things going. Someone needs to make this process easier or release universal versions of these tools! Ugh.

bigdogjonx
07-30-2007, 05:25 PM
Hate to say this, but Im seeing tons of these threads pop up and every one of them seem to start with iActivator. Sounds like that app is the problem or someone is not using it correctly say on the right OS or something.

Ive done mine countless number of times on a Mac Intel, PC, and no problem. Used the terminal Jailbreak and terminal iphoneinterface and to this day no issues.

Dixit

nnny
07-30-2007, 08:06 PM
The main problem with this is th fact that iPhoneInterface and iActivator do not work together on PowerPC Macs. Is there anyway toget iActivator and iPhoneInterface to work together without this error? Also, the problem is that both programs were originally Intel only. If someone built the two programs with PPC Macs inind then we would not have such an error.So if someone could fix both programs and provide links to the updates that would be great.