title: NSUserDefaults plist file is getting removed and not creating again while running the app from Xamarin.UITest
body: <p>We are using NSUserDefaults to store some environment related details (i.e. URL of web service). We are saving the URL in NSUserDefaults once the app is launched. If we launch the application directly from the springboard we are able store and retrieve the values from NSUserDefaults and it is working as expected. But when we run the application through Xamarin.UITest project the plist file for the NSUserDefaults is getting removed and not at all creating again even after calling the NSUserDefaults.StandardUserDefaults.Synchronize() method.</p>
  
  <p><strong>More Details:</strong></p>
  
  <ul>
  <li>App Development: Xamarin.iOS</li>
  <li>Test Project : Xamarin.UITest</li>
  </ul>
  
  <p><strong>ConfigureApp in UITest Project</strong></p>
  
  <pre><code>app = ConfigureApp
                  .iOS
                  .PreferIdeSettings()
                  .EnableLocalScreenshots()
                  .DeviceIdentifier(“guid”)
                  .InstalledApp(“bundle_identifier”)
                  .StartApp();
  </code></pre>
  
  <p><strong>Note:</strong> When we use <code>.StartApp(Xamarin.UITest.Configuration.AppDataMode.DoNotClear);</code> in configuration it is working fine and the plist file is not getting removed. But as per our requirement we need to clear the app data every time during the app launch.</p>
  
  <p>Please help me to resolve this issue.</p>
  
  <p>Thanks in Advance</p>