I'm getting this crash on 9.3 update, on 9.2 everything worked fine. What can it be? The error appears on sign in through any source (login pass, VK, google)
class AppDelegate: UIResponder, UIApplicationDelegate, GIDSignInDelegate {
var window: UIWindow?
private let settingsManager = SettingsManager.manager
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Googole Map
GMSServices.provideAPIKey("-k")
UINavigationBar.appearance().tintColor = #colorLiteral(red: 1, green: 1, blue: 1, alpha: 1)
UINavigationBar.appearance().barTintColor = #colorLiteral(red: 0.2069905996, green: 0.2386507988, blue: 0.3337202668, alpha: 1)
UITabBar.appearance().tintColor = #colorLiteral(red: 0.2069905996, green: 0.2386507988, blue: 0.3337202668, alpha: 1)
let barFont = UIFont.systemFont(ofSize: 20)
UINavigationBar.appearance().titleTextAttributes = [NSForegroundColorAttributeName: #colorLiteral(red: 1, green: 1, blue: 1, alpha: 1), NSFontAttributeName: barFont]
if settingsManager.isFirstStartApp {
} else {
settingsManager.isFirstStartApp = true
settingsManager.setDefaultSettings()
}
// Facebook
FBSDKApplicationDelegate.sharedInstance().application(application, didFinishLaunchingWithOptions: launchOptions)
// Google +
var configureError: NSError?
GGLContext.sharedInstance().configureWithError(&configureError)
assert(configureError == nil, "Error configuring Google services: \(String(describing: configureError)) )")
GIDSignIn.sharedInstance().delegate = self
return true
}
Error in the first application method when signing throug google. I've searched some topics - no luck. Conversion to Swift 4 - no luck. Any ideas?
Crash log pastebin.com/DEEeQnZB
With the accepted answer I got further, bbut now it crashes on
let predicate = NSPredicate(format: "isActive == %@", true as CVarArg)
with the same "Bad access"
UPD: The issue is resolved by replacing
let predicate = NSPredicate(format: "isActive == %@", true as CVarArg)
to
let predicate = NSPredicate(format: "isActive == true")
