How to fix “nw_connection_receive_internal_block_invoke” (console)

I was getting the same error. My code looked like this: UserServices().getUserWithUID(uid: user.uid) { (user) in self.window?.rootViewController = MapViewController(user: user) self.window?.makeKeyAndVisible() } All I did to resolve the problem was change my code to this: let userServices = UserServices() userServices.getUserWithUID(uid: user.uid) { (user) in self.window?.rootViewController = MapViewController(user: user) self.window?.makeKeyAndVisible() } and the console errors disappeared.

Check for internet connection with Swift

To solve the 4G issue mentioned in the comments I have used @AshleyMills reachability implementation as a reference and rewritten Reachability for Swift 3.1: updated: Xcode 10.1 • Swift 4 or later Reachability.swift file import Foundation import SystemConfiguration class Reachability { var hostname: String? var isRunning = false var isReachableOnWWAN: Bool var reachability: SCNetworkReachability? var … Read more

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