- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我的应用程序在尝试呈现 View Controller 时崩溃。它似乎只发生在设备中,但不会发生在模拟器中。
在归档 TestFlight 构建之前,我还需要禁用断点吗?
这是崩溃日志:
Incident Identifier: E8E38296-EB9E-47FD-AC91-DC6231A32CE2
Beta Identifier: C0074033-1ABA-4888-9906-B0E709FDC0D5
Hardware Model: iPhone10,6
Process: Darb [6943]
Path: /private/var/containers/Bundle/Application/134E7292-FC58-4A08-9C73-E5B27C8BE5D2/Darb.app/Darb
Identifier: com.dot.Darb
Version: 7 (3.6.14)
Beta: YES
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.dot.Darb [2421]
Date/Time: 2018-07-23 10:51:48.2281 +0400
Launch Time: 2018-07-23 10:51:44.0025 +0400
OS Version: iPhone OS 11.2.6 (15D100)
Baseband Version: 1.03.06
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x183c2b164 __exceptionPreprocess + 124 (NSException.m:166)
1 libobjc.A.dylib 0x182e74528 objc_exception_throw + 56 (objc-exception.mm:521)
2 CoreFoundation 0x183c2ae2c -[NSException raise] + 12 (NSException.m:98)
3 Foundation 0x184542630 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 272 (NSKeyValueCoding.m:418)
4 UIKit 0x18d551134 -[UIViewController setValue:forKey:] + 104 (UIViewController.m:1275)
5 UIKit 0x18d779224 -[UIRuntimeOutletConnection connect] + 124 (UIRuntimeOutletConnection.m:17)
6 CoreFoundation 0x183b37d14 -[NSArray makeObjectsPerformSelector:] + 284 (NSArray.m:497)
7 UIKit 0x18d777c18 -[UINib instantiateWithOwner:options:] + 1696 (UINib.m:0)
8 UIKit 0x18d554be0 -[UIViewController _loadViewFromNibNamed:bundle:] + 372 (UIViewController.m:2866)
9 UIKit 0x18d3028e8 -[UIViewController loadView] + 176 (UIViewController.m:2995)
10 UIKit 0x18d1e56a8 -[UIViewController loadViewIfRequired] + 184 (UIViewController.m:3094)
11 UIKit 0x18d1e55d8 -[UIViewController view] + 28 (UIViewController.m:3155)
12 UIKit 0x18dd8ed24 -[_UIFullscreenPresentationController _setPresentedViewController:] + 92 (_UIFullscreenPresentationController.m:232)
13 UIKit 0x18d52da18 -[UIPresentationController initWithPresentedViewController:presentingViewController:] + 140 (UIPresentationController.m:81)
14 UIKit 0x18d55e84c -[UIViewController _presentViewController:withAnimationController:completion:] + 2676 (UIViewController.m:7081)
15 UIKit 0x18d56188c __63-[UIViewController _presentViewController:animated:completion:]_block_invoke_2 + 68 (UIViewController.m:7543)
16 UIKit 0x18d1f392c +[UIView(Animation) performWithoutAnimation:] + 104 (UIView.m:11877)
17 UIKit 0x18d5617e0 __63-[UIViewController _presentViewController:animated:completion:]_block_invoke + 220 (UIViewController.m:7541)
18 UIKit 0x18d561ca0 -[UIViewController _performCoordinatedPresentOrDismiss:animated:] + 528 (UIViewController.m:7621)
19 UIKit 0x18d5616bc -[UIViewController _presentViewController:animated:completion:] + 188 (UIViewController.m:7552)
20 UIKit 0x18d2c32d0 -[UIViewController presentViewController:animated:completion:] + 160 (UIViewController.m:7565)
21 Darb 0x1025fdd7c MainViewController.viewDidLoad() + 5940 (MainViewController.swift:320)
22 Darb 0x1025ff3c0 @objc MainViewController.viewDidLoad() + 28 (MainViewController.swift:0)
23 UIKit 0x18d1e5a00 -[UIViewController loadViewIfRequired] + 1040 (UIViewController.m:3133)
24 UIKit 0x18d28ceb8 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 76 (UINavigationController.m:6345)
25 UIKit 0x18d28c358 -[UINavigationController _startTransition:fromViewController:toViewController:] + 196 (UINavigationController.m:6380)
26 UIKit 0x18d28bd5c -[UINavigationController _startDeferredTransitionIfNeeded:] + 1168 (UINavigationController.m:6601)
27 UIKit 0x18d28b7d8 -[UINavigationController __viewWillLayoutSubviews] + 164 (UINavigationController.m:6872)
28 UIKit 0x18d28b6d8 -[UILayoutContainerView layoutSubviews] + 188 (UILayoutContainerView.m:87)
29 UIKit 0x18d1e2e18 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1276 (UIView.m:15124)
30 QuartzCore 0x187c6f948 -[CALayer layoutSublayers] + 184 (CALayer.mm:9302)
31 QuartzCore 0x187c73ad0 CA::Layer::layout_if_needed(CA::Transaction*) + 332 (CALayer.mm:9182)
32 QuartzCore 0x187be031c CA::Context::commit_transaction(CA::Transaction*) + 336 (CALayer.mm:2416)
33 QuartzCore 0x187c07b40 CA::Transaction::commit() + 540 (CATransactionInternal.mm:425)
34 UIKit 0x18d45eb6c __34-[UIApplication _firstCommitBlock]_block_invoke_2 + 140 (UIApplication.m:9904)
35 CoreFoundation 0x183bd3590 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 20 (CFRunLoop.c:1840)
36 CoreFoundation 0x183bd2e60 __CFRunLoopDoBlocks + 288 (CFRunLoop.c:1881)
37 CoreFoundation 0x183bd0b70 __CFRunLoopRun + 1068 (CFRunLoop.c:2922)
38 CoreFoundation 0x183af0c58 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3245)
39 GraphicsServices 0x18599cf84 GSEventRunModal + 100 (GSEvent.c:2245)
40 UIKit 0x18d2495c4 UIApplicationMain + 236 (UIApplication.m:3956)
41 Darb 0x1025b1064 main + 56 (AppDelegate.swift:19)
42 libdyld.dylib 0x18361056c start + 4
有人可以查看一下日志并为我指出正确的方向吗?
以下是崩溃日志指向的代码
let lastLaunch = Foundation.UserDefaults.standard.double(forKey: "lastLaunch")
let lastLaunchDate = Date(timeIntervalSince1970: lastLaunch)
let lastLaunchIsToday = Calendar.current.isDateInToday(lastLaunchDate)
if !lastLaunchIsToday {
// Show the GIF
let zayedVC: ZayedVideoViewController = self.storyboard?.instantiateViewController(withIdentifier: "ZayedVC") as! ZayedVideoViewController
zayedVC.providesPresentationContextTransitionStyle = true
zayedVC.definesPresentationContext = true
zayedVC.isModalInPopover = true
zayedVC.modalPresentationStyle = .overFullScreen
self.navigationController?.present(zayedVC, animated: false, completion: nil)
}
Foundation.UserDefaults.standard.set(Date().timeIntervalSince1970, forKey: "lastLaunch")
最佳答案
好的,
我已经成功解决了这个问题,我遇到的问题是 socket 连接损坏。
我已将其从 Storyboard 中删除,并且运行良好
关于ios - 呈现 View Controller 时发生崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51485186/
我有一个 aspx 应用程序。在每个 GET 中,服务器以包含除表格网格之外的所有内容的“基本”html 进行响应。 这个“网格信息”包含在页面中隐藏的输入类型(json 格式)中。 这是设计使然,无
阅读有关 iOS 中 UIViewControllers 更改的文档,我试图弄清楚呈现模态视图 Controller 之间的交互如何在自定义容器 View Controller 内工作。最终,我希望能
我正忙于编写自己的 JSF2 UIComponent 及其相关的渲染器。我所有的 UIComponent 都实现了 ClientBehaviorHolder。我不明白的是如何真正呈现 ClientBe
我正在开发一个使用UIPopoverController的应用程序,我在呈现该弹出窗口时遇到问题,我有一个添加在self.view上的UIView,并在该 View 上添加了一个表格 View ,该表
我有一个简单的应用程序,我想在用户首次登录应用程序时在其中显示一个 PageViewController。他们查看教程后,在下一次加载时不会显示 PageViewController。 但是我收到了以
我正在尝试制作一个小型的backbone.js 应用程序,但在事情的顺序上很挣扎。 在我的 html 文件中,标题中有两个脚本 block : jQuery(function(){
我有一个以模型为来源的表格: $form->setModel("test"); 在模型中,我们可以定义字段类型,例如:boolean 将在表单中制作复选框。 现在我们如何定义呈现为单选按钮的类型? 最
fabricJS 版本 2.2.3 测试 jsFiddle 我正在尝试使用 LabeledRect 子类,但我的问题是,每当我尝试从 JSON 加载它时,它都不会呈现,并且在控制台中也没有出现错误。请
在我的 Xaml 中,我定义了一个资源作为 vehicleDataInput,它提供一些文本框供用户输入数据。如果我没有为它定义一个 x:Key ,它将在我的应用程序中出现并按其应有的方式工作。问题是
我在 React 中创建了一个 Symbol 组件来轻松呈现 HTML Symbols像 euro 这样的名字将呈现 €(€) 或 sum 呈现 ∑(∑). 问题是,如果我只渲染 HTML 代码,我将
我尝试渲染一个 View ,该 View 工作正常,但似乎无法获得传递给它的模型对象。我不知道原因,因为根据所有手册和示例,这应该非常简单。 模型对象 class Race { def dis
我正在尝试为Grails项目添加一个简单功能,类似于youtube,它将允许用户喜欢/不喜欢文章。有一个非常原始的页面来显示带有喜欢的文章和一个使“喜欢”成为可能的 Controller 。 las,
我的应用程序中的第一个 ViewController 子类 UIImagePickerController 然后通过 didFinishPickingMediaWithInfo 回调,我执行以下操作:
我正在做一个简单的 redux/react todo 应用程序。我无法显示待办事项。我能够 console.log 数据,但无法显示它。我做错了什么? 我把文件分开了,这是我的app.js: impo
我正在尝试呈现一个导航 Controller ,它似乎可以工作并呈现导航 Controller 。但是,即使它有效,我仍然不断收到错误? 我的代码 let vc = storyboard.instan
我正在重新创建一个简单版本的 snapchat 应用程序,但遇到了一个恼人的小问题,我似乎无法找到解决办法。 我查看了一些答案,例如 this one但没有运气。 总体概念与 snapchat 用户单
我在呈现警报时遇到问题。我正在使用 UIAlertController。当用户按下提交按钮时,在应用程序执行某些操作时,需要立即显示“请稍候..”的警报。操作完成后,警报将消失。尽管应该在我开始执行操
我只是想用 Kinetic 渲染图像,但没有出现,也没有出现错误。 可以找到 fiddle here . 源代码: $( function() { var stage = new Kineti
我正在使用 Phantomjs 检查我的应用程序。我正在查看的页面包含很多组件,并且由 Angularjs 提供支持。我的测试服务器很慢。在 onLoadFinished 事件中,我使用渲染对网页进行
我有一个变量,它的字符串包含我所有的文档,如下所示: var string = " ReportHelloWorld"; 我想打开一个正确插入和显示此报告的新页面,但不知道如何操作。我该怎么办? 感谢
我是一名优秀的程序员,十分优秀!