iOS应用程序仅在IOS 11.4版本上崩溃

时间:2018-06-28 13:59:05

标签: ios swift4 ios11.4

一旦在表格单元格中填充了数据,我就创建了一个UItableview,应用程序崩溃。以下是我在crashlytics上遇到的错误。

Fatal Exception: NSInvalidArgumentException
-[NSTaggedPointerString parentViewController]: unrecognized selector sent to instance 0xa2100206300500a9


#0. Crashed: com.twitter.crashlytics.ios.exception
0  0x104ecbc98 CLSProcessRecordAllThreads (CLSProcess.c:376)
1  0x104ecbc98 CLSProcessRecordAllThreads (CLSProcess.c:376)
2  PropDispatch                   0x104ecc10c CLSProcessRecordAllThreads (CLSProcess.c:407)
3  0x104ebb74c CLSHandler (CLSHandler.m:26)
4 0x104eca204 __CLSExceptionRecord_block_invoke (CLSException.mm:199)
5  libdispatch.dylib              0x181480a60 _dispatch_client_callout + 16
6  libdispatch.dylib              0x1814895bc _dispatch_queue_barrier_sync_invoke_and_complete + 56
7  0x104ec9c80 CLSExceptionRecord (CLSException.mm:206)
8  0x104ec9ab0 CLSExceptionRecordNSException (CLSException.mm:102)
9  0x104ec96b0 CLSTerminateHandler() (CLSException.mm:259)
10 libc++abi.dylib                0x180d3937c std::__terminate(void (*)()) + 16
11 libc++abi.dylib                0x180d38f78 __cxa_rethrow + 144
12 libobjc.A.dylib                0x180d487ac objc_exception_rethrow + 44
13 CoreFoundation                 0x181a54e18 CFRunLoopRunSpecific + 664
14 GraphicsServices               0x183a39020 GSEventRunModal + 100
15 UIKit                          0x18ba71758 UIApplicationMain + 236
16 PropDispatch                   0x1048e3a88 main (UICheckBox.swift:21)
17 libdyld.dylib                  0x1814e5fc0 start + 4

仅在结构,diawi或testflight上载应用程序后,才在IOS 11.4上发生此错误。开发过程中没有发生错误。

用我的代码更新我的帖子,这会导致我的应用崩溃。

  let task = URLSession.shared.dataTask(with: request) { (data, response, error) in
            do {

                let jsonDecoder = JSONDecoder()
                if let dataIn = data {
                    let responseModel = try jsonDecoder.decode(orderedDataModel.self, from: dataIn)
                    if(responseModel.status == false || responseModel.message == "Failed" || responseModel.message == "No Data found" )
                    {
                        self.totalLoads = responseModel.length ?? 0
                        if(self.pageLimitChange){
                            self.orderedDetailData = []
                            self.progress_status_log = []
                            self.progress_status_log_Filter = []
                        }
                        self.loadCount()
                        DispatchQueue.main.async {
                            self.tableView.reloadData()
                            self.tableView.isHidden =  true
                        }
                        self.onlySubScribe = false
                        self.loader.HideLoader()
                    }
                    if(responseModel.status == true )
                    {
                        if(responseModel.data?.count == 0)
                        {
                            self.totalLoads = responseModel.length ?? 0
                            if(self.pageLimitChange){
                                self.orderedDetailData = []
                                self.progress_status_log = []
                                self.progress_status_log_Filter = []
                            }
                            DispatchQueue.main.async {
                                self.tableView.reloadData()
                                self.tableView.isHidden =  true
                            }
                        }
                        else{
                            self.orderedDetailData = responseModel.data!
                            self.totalLoads = responseModel.length ?? 0
                            DispatchQueue.main.async {
                                self.tableView.isHidden =  false
                                self.tableView.reloadData()
                            }

                        }
                        self.loadCount()
                        self.onlySubScribe = false
                        self.loader.HideLoader()
                    }else{
                        self.orderedDetailData = []
                        self.progress_status_log = []
                        self.progress_status_log_Filter = []
                        DispatchQueue.main.async {
                            self.tableView.reloadData()
                            self.tableView.isHidden =  true
                        }
                    }
                }else{

                    DispatchQueue.main.async {
                        self.loader.HideLoader()
                    }
                }   
            }
            catch {
            }
        }
        task.resume()

0 个答案:

没有答案