Users of the Apple iPhone have been warned of the first major worm to hit the handset.