title: Xcode 9 simulator doesn't save userdefaults
body: <p>Maybe it's the same issue as <a href="https://stackoverflow.com/questions/37825630/save-dictionary-in-userdefaults-in-swift-3-with-xcode-8">this</a> one. But few of the solutions that I have tried don't work.</p>
  
  <p>The simulator don't save userdefaults on Xcode Version 9.0 beta 6 (9M214v).
  I had Xcode 8 as well (together with 9) but removed it. </p>
  
  <p>the code that I'm using:</p>
  
  <pre><code>UserDefaults.standard.setValue("1234567", forKey: "phone")
  if let phone = UserDefaults.standard.value(forKey: "phone") as? String{
    //some code here
  }
  </code></pre>
  
  <p>Additionally I have tried:</p>
  
  <pre><code>UserDefaults.standard.set("1234567", forKey: "phone")
  if let phone = UserDefaults.standard.object(forKey: "phone") as? String{
    //some code here
  } 
  </code></pre>