HomeKit completion block in Swift: Cannot convert the expression’s type ‘Void’ to type ‘String!’

The parameters for your completionHandler closure are reversed, they should be: (home: HMHome!, error: NSError!) Also note that you don’t need to specify the types for the parameters, since the method signature specified them for you – thus you can simply list the parameter names you want to use, and they will automatically be assured … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)