title: Xcode 4.2 with iOS 5.0 not detecting iPhone iOS 5.1.1
body: <p>I changed a while ago from Xcode 3 to Xcode 4.2 for Snow Leopard. Everything was fine, I developed apps for iPhone and all was going smoothly until today...
  I got alert:</p>
  
  <blockquote>
    <p>The version of iOS on “iPhone Prophone” does not match any of the versions of iOS supported for development with this installation of the iOS SDK. Please restore the device to a version of the OS listed below, or update to the latest version of the iOS SDK; which is available here.</p>
  </blockquote>
  
  <p>Which is strange, because yesterday I was able with simple "run" test my app <strong>aimed for iOS 5.0</strong> (Xcode target 5.0, 4C199) with my iPhone 4S, which has iOS 5.1.1 (9B206) for quite some time. In Organizer->Devices my iPhone has a yellow dot suggesting that something is wrong. I don't think I did something unexpected, just came, turned mac on and fired up Xcode... any solution?</p>
  
  <p>I've read <a href="https://stackoverflow.com/questions/7812477/xcode-4-2-cant-build-to-a-device">that</a>, but as I said - I was using new Xcode for few weeks and suddenly this "non-detection" happened... <br/>
  I'm stuck, thanks for help.</p>
  
  <p>EDIT:<br/>
  I found something relevant in this <a href="https://stackoverflow.com/questions/9613565/is-is-possible-to-get-the-ios-5-1-sdk-for-use-with-xcode-4-2-on-snow-leopard">topic on SO</a>, but I'll wait a bit - maybe there is something simpler or more obvious that I missed.</p>