title: Expression was too complex to be solved in reasonable time Swift 3
body: <p>I am trying to convert my project to Swift 3, but I am getting an error message that the expression is too complex to be solved in reasonable time. I am not sure why this is, since this expression was working fine in Swift 2.2, but now all of a sudden it is taking so long?</p>
  
  <p>Does anyone know how I can fix this? Here is the expression. It is basically a dictionary that will be used later with <code>SecItemCopyMatching</code> to extract an item from the keychain that was saved with a key tag. It performs a <code>touchID</code> to do this, since it was saved with that locking parameter:</p>
  
  <pre><code>let query : [String: AnyObject] = [String(kSecClass) : kSecClassGenericPassword,
       String(kSecAttrService) : keyTag as AnyObject,
       String(kSecAttrAccount) : keyTag,
       String(kSecReturnData) : kCFBooleanTrue,
       String(kSecMatchLimit) : kSecMatchLimitOne,
       String(kSecUseOperationPrompt) : message]
  </code></pre>