I live in Europe and my factory unlocked iPhone 3GS developed a fault, my wife is in the USA at the moment and has taken it to an Apple store who have swapped it for a new one but of course it will now be locked to AT&T. My question is can I unlock an iPhone before it is activated? Then once unlocked can I activate it using my local providers SIM or should I get my Wife to take it to AT&T for activation before she leaves USA in a couple of days time? Should I get an AT&T pay as you go sim card so that it it recognised by my iTunes? Also do you have to jailbreak before unlocking? I do not know which firmware version it will be but assume it will be 3.1.2 or 3.1.3 (I know there are issues with unlocking 3.1.3 at the moment but I can wait if necessary).