应用程序因启动时崩溃而被拒绝两次

App Rejection twice due to crash on launch

我有一个内置于 swift 中的 iOS 应用程序。我第一次顺利通过了审核。昨天在提供更新时,由于 "Crash on Launch",我被拒绝了。我有以下符号化的崩溃日志,我正在尝试对其进行分析,对于大部分内容,我可以说它的问题确实在启动时完成了。我对这个问题仍然很胆怯。

根据日志,崩溃的实际问题是什么?我该如何解决?

以下是 2 个崩溃日志:

崩溃日志 -

Log 1

Log 2

以下是 didFinishLaunching 在第一次提交时,已被接受:

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {


    #if DEVELOPMENT
        print("Development Mode Started")
        let filePath = Bundle.main.path(forResource: "GoogleService-Info", ofType: "plist")
        guard let fileopts = FirebaseOptions.init(contentsOfFile: filePath!)
            else {
                fatalError("Couldn't load config file")
        }
        FirebaseApp.configure(options: fileopts)
    #else
        print("Production Mode Started")
        FirebaseApp.configure()
    #endif


    Messaging.messaging().delegate = self
    IQKeyboardManager.sharedManager().enable = true
    Fabric.with([Crashlytics.self, Appsee.self])

    let uid = KeychainWrapper.standard.string(forKey: KEY_UID)

    if uid != nil {
        checkforAccess()
    }

    return true
}

虽然这是在 didFinishLaunchin 中,但我在另一个视图中有另一个观察者,这是 initialVC。它还同时检查用户是否存在,如果不存在,将显示 'BootVC',这与 AppDelegate 中的上述方法类似。

我意识到并删除了它,但我担心的是,日志中是否还有我遗漏的其他信息。

P.S : 我 运行 在带有测试版软件的全新设备上的全新环境中使用该应用程序。当时和现在都没有崩溃。

任何输入将不胜感激。

如果需要更多信息,请告诉我。我会及时的。

作为初始级别,您的问题看起来很不清楚。崩溃日志也没有定义确切的问题。

可能的问题:

  • Check if the crash issue happens only on arm 64 devices. If so than you should check if your app is enable for the base 64 support & if not than provide support
  • Another reason is if your app accessing privacy sensitive data such as location tracking or accessing photo library or something like without permission than also it will get closed at the launch time

解决:

  • To simply get accurate crash reports use crashlytics tool inside your app. It will help you to find the line on which crash occurs
  • Another common way is to try & test app on debug environment & enable exception break points

希望对您有所帮助。