title: Swift Realm Simulator Permission Denied
body: <p>I have been using RealmSwift for a while with no issues. However I have just started to get the following error when running Simulator with a Realm Swift Project</p>
  
  <p>xcode: 8.2.1 (I am on El Capitain so this is the latest I can go)</p>
  
  <p>RealmSwift: 3.0.2</p>
  
  <p>Swift: 3.0.2.</p>
  
  <blockquote>
    <p>Error: Domain=io.realm.unknown Code=13 "Permission denied"</p>
    
    <p>file:///Users/michaelmoulsdale/Library/Developer/CoreSimulator/Devices/B83BA287-5365-4048-A813-042D63A194A6/data/Containers/Data/Application/78F3500D-975E-4A60-A674-203325588F3F/Documents/default.realm
    fatal error: 'try!' expression unexpectedly raised an error: Error
    Domain=io.realm.unknown Code=13 "Permission denied"
    UserInfo={Category=system, Error Code=13,
    NSLocalizedDescription=Permission denied}: file
    /Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-800.0.63/src/swift/stdlib/public/core/ErrorType.swift,
    line 178</p>
  </blockquote>
  
  <p>I have tried the following things
  update Cocoa Pods for RealmSwift
  I am in the progressing of re-installing Xcode from the developer downloads.</p>
  
  <p>Any other thoughts?</p>