title: iOS8 Simulator user agent
body: <p>While investigating why I have a bug on iOS8 webview I discovered that WebView's User-Agent is:</p>
  
  <p>Mozilla/5.0 (iPhone; CPU iPhone OS 10_9_5 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A365 (2072607680)</p>
  
  <p>Whereas since I'm running for iOS8, it rather should be:</p>
  
  <p>Mozilla/5.0 (iPhone; CPU iPhone OS 8_0_2 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Mobile/12A405kalturaNativeCordovaPlayer (350612576)</p>
  
  <p>Of Course there's no iPhone running version 10.10 as yet, so Xcode6 is somehow picking up version from Mac OS X. For iOS &lt; iOS8 simulators, it works just fine.</p>
  
  <p>So do you have a solution for me how to discover if it's iOS8 simulator or not</p>
  
  <p>For now this is my javascript method:</p>
  
  <pre><code>isIOS8 = function(){
      return ( /OS 8_/.test( userAgent ) || /Version\/8/.test( userAgent ) ) &amp;&amp; isIOS();
  };
  </code></pre>