How Apple Lost the iPhone 4