Swift   发布时间:2022-03-31  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了swift – 应用程序崩溃登录(xcode 9.3)EXC_BAD_ACCESS(代码= 1,地址= 0x1)大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
@H_673_2@

概述

我在9.3更新中遇到此崩溃,在9.2上一切正常.它能是什么?通过任何来源登录时出现错误(登录通行证,VK,谷歌) class AppDelegate: UIResponder, UIApplicationDelegate, GIDSignInDelegate { var window: UIWindow? private let setTingsmanager = SetTingsmanage
@H_673_2@
@H_673_2@ @H_673_2@
我在9.3更新中遇到此崩溃,在9.2上一切正常.它能是什么?通过任何来源登录时出现错误(登录通行证,VK,谷歌)
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,alpha: 1)

    let barFont = UIFont.systemFont(ofSize: 20)
    UINavigationBar.appearance().titleTextAttributes =  [NSForegroundColorAttributename: #colorLiteral(red: 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
}

通过谷歌签名时第一个应用程序方法出错.我搜索了一些话题 – 没有运气.转换为Swift 4 – 没有运气.有任何想法吗?

崩溃日志pastebin.com/DEEeQnZB

随着接受的答案,我得到了进一步,但现在它崩溃了

let preDicate = NSPreDicate(format: "isActive == %@",true as CVarArg)

有相同的“访问不良”

UPD:通过替换来解决问题

let preDicate = NSPreDicate(format: "isActive == %@",true as CVarArg)

let preDicate = NSPreDicate(format: "isActive == true")
@H_673_2@ @H_301_22@@H_673_2@ @H_772_37@ 与Facebook登录有类似的问题 – 在Xcode 9.3发行说明中找到了我的工作:

https://developer.apple.com/library/content/releasenotes/DeveloperTools/RN-Xcode/Chapters/Introduction.html#//apple_ref/doc/uid/TP40001051-CH1-DontLinkElementID_1

引用它们

class AppDelegate: UIApplicationDelegate {
func application(_ application: UIApplication,open url: URL,sourceApplication: String?,Annotation: Any) -> Bool {
    return true
}
class AppDelegate: UIApplicationDelegate {
func application(_ application: UIApplication,Annotation: Any?) -> Bool {
    return true
}
@H_673_2@

大佬总结

以上是大佬教程为你收集整理的swift – 应用程序崩溃登录(xcode 9.3)EXC_BAD_ACCESS(代码= 1,地址= 0x1)全部内容,希望文章能够帮你解决swift – 应用程序崩溃登录(xcode 9.3)EXC_BAD_ACCESS(代码= 1,地址= 0x1)所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。