细分错误:11个Xcode 10

时间:2018-11-04 04:47:04

标签: ios swift xcode segmentation-fault

我最近将Xcode升级到了10,我的应用的先前版本运行良好,但在Xcode 10中却显示了错误。

  

错误:细分错误:11

Error

这是日志:

  
      
  1. 在/ Users / ranahaani / Desktop / Cleaniq pro / Cleaniq上为“ showPatientInfo(liveNumber :)”发出SIL的同时   pro / Controller / AdminPanelViewController.swift:451:5
  2.   
  3. silgen发出Function SIL函数“ @ $ S11Cleaniq_pro24AdminPanelViewControllerC15showPatientInfo10liveNumberys5Int32V_tF”时。   用于/ Users / ranahaani / Desktop / Cleaniq中的'showPatientInfo(liveNumber :)'   pro / Cleaniq pro / Controller / AdminPanelViewController.swift:451:5
  4.   
  5. silgenclosureexpr SIL函数为“ @ $ S11Cleaniq_pro24AdminPanelViewControllerC15showPatientInfo10liveNumberys5Int32V_tFySo16FIRQuerySnapshotCSg_s5Error_pSgtcfU_”。   在[/ Users / ranahaani / Desktop / Cleaniq pro / Cleaniq   pro / Controller / AdminPanelViewController.swift:455:226-行:507:13]   RangeText =
  6.   
"{ (DocumentSnapshot, err) in
                    if let err = err {
                        print("Error getting documents: \(err)")
                    } else {
                        for document in DocumentSnapshot!.documents {
                            self.patientName = (document.get("patientName") as? String!)!
                            let patientNumber = document.get("patientPNumber") as? String
                            let patientGender = document.get("patientGender") as? String
                            let patientStatus = document.get("patientStatus") as? String
                            let pToken = document.get("tokens")as? String
                            let patientAge = document.get("patientAge")as? String
                            self.docKey = document.documentID
                            self.documentReference = document.reference
                            self.customerName.text = self.patientName
                            self.patientNumber.text = patientNumber
                            self.tokenNumber.text = pToken
                            self.Processing.text = patientStatus
                            //txtPStatus.setText(patientStatus)
                            self.Age.text = "Age -\(patientAge ?? "Age")"

                            if ((patientGender?.caseInsensitiveCompare("Male")) == ComparisonResult.orderedSame){
                                self.imageViewPatient.image = #imageLiteral(resourceName: "boy")
                            }else if ((patientGender?.caseInsensitiveCompare("Female")) == ComparisonResult.orderedSame){
                                self.imageViewPatient.image = #imageLiteral(resourceName: "girl")
                            }
                            else if patientGender?.caseInsensitiveCompare("Other") == ComparisonResult.orderedSame{
                                self.imageViewPatient.image = #imageLiteral(resourceName: "girl")
                            }


                            if (patientStatus?.caseInsensitiveCompare("Booked")) == (ComparisonResult.orderedSame){
                                SVProgressHUD.show(withStatus: "Please wait....")
                                self.documentReference.updateData(["patientStatus" : "Processing"], completion: { (err) in
                                    if (err != nil){print(err?.localizedDescription ?? "Error in Patient Status")}
                                    else{
                                        self.showPatientInfo(liveNumber: liveNumber)
                                        SVProgressHUD.dismiss()
                                    }
                                })
                            }
                            else if (patientStatus?.caseInsensitiveCompare("Cancelled")) == (ComparisonResult.orderedSame){
                                self.callNextPatient();
                                SVProgressHUD.dismiss()

                            }
                            if (patientStatus?.caseInsensitiveCompare("Processing")) == (ComparisonResult.orderedSame){
                                self.Processing.fadeTransition(0.4)
                                SVProgressHUD.dismiss()
                            }
                        }
                    }

                }"

在我更新到Xcode 10之前它曾经可以工作。有什么主意吗?

0 个答案:

没有答案