title: Ambiguous use of subscript when attempting to use physical simulator
body: <p>I am attempting to run my application on a physical device (iPhone 6+) and I keep getting this error message. <strong>Ambiguous use of subscript</strong>. When running the application on the simulator everything runs fine, I am wondering if it is an issue that corresponds to using a physical device.</p>
  
  <pre><code>//Making array to sort through the index of the specific field
          if let array = allUsers["user_info"] {
              for index in 0...array.count-1 {
                  let aObject = array[index] as! [String : AnyObject]
                  let Emails = aObject["email"] as! String
                  let Passwords = aObject["password"] as! String
                  user_info[Emails] = Passwords as AnyObject?
              }
          }
  </code></pre>
  
  <p>I am getting the error on the following line: <strong>let aObject = array[index] as! [String : AnyObject]</strong></p>
  
  <p><a href="https://i.stack.imgur.com/0WSvO.png" rel="nofollow noreferrer">Image of error message within code.</a></p>