gpt4 book ai didi

ios - UITableView IBOutlet 在 ViewDidLoad 上崩溃,Apple Beta 审查小组不适合我

转载 作者:搜寻专家 更新时间:2023-10-31 19:34:00 26 4
gpt4 key购买 nike

我的应用程序一直被 Apple Beta 审查小组拒绝,因为他们声称是启动时崩溃。关键是崩溃永远不会发生在我这边的任何模拟器或设备上。

符号化的崩溃日志报告如下,但第 74 行报告在 HomeViewController.swift 中(这里我报告了提交给 Beta 审查小组的代码图像)

enter image description here

只是引用来自 Storyboard的 UITableView IBOutlet,如果我在此处放置断点,则会实例化 tableView。我正在使用 swift、iOS 9.3.2 和 Xcode 7.3.1。

编辑:第 87 行是相同的,在 UIButton IBOutlet 上调用函数 renderButton(btnOpened, selected: true)。

我尝试设置僵尸、地址清理器,但我一直没有崩溃,他们一直有,我不知道有什么办法可以解决这个问题。有谁知道哪里出了问题?

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 Sportito 0x00000001000cee40 HomeViewController.viewDidLoad() -> () (HomeViewController.swift:74)
1 Sportito 0x00000001000ce990 HomeViewController.viewDidLoad() -> () (HomeViewController.swift:87)
2 Sportito 0x00000001000cee60 @objc HomeViewController.viewDidLoad() -> () (HomeViewController.swift:0)
3 UIKit 0x0000000186934c40 -[UIViewController loadViewIfRequired] + 996
4 UIKit 0x0000000186934844 -[UIViewController view] + 28
5 UIKit 0x0000000186cdaaec -[UINavigationController preferredContentSize] + 172
6 UIKit 0x0000000186b9adf4 -[UIViewController(UIPopoverController_Internal) _resolvedPreferredContentSize] + 68
7 UIKit 0x0000000186b9a858 -[UIPopoverController _transitionFromViewController:toViewController:animated:] + 152
8 UIKit 0x0000000186b9a48c -[UIPopoverController _initWithContentViewController:popoverControllerStyle:] + 836
9 UIKit 0x0000000186f5ac7c -[UISplitViewController _setupHiddenPopoverControllerWithViewController:] + 120
10 UIKit 0x0000000186f5aeec -[UISplitViewController _viewControllerHiding:] + 356
11 UIKit 0x0000000186f62b60 -[UISplitViewController viewWillAppear:] + 208
12 UIKit 0x000000018694d374 -[UIViewController _setViewAppearState:isAnimating:] + 628
13 UIKit 0x000000018694d0e8 -[UIViewController __viewWillAppear:] + 156
14 UIKit 0x000000018693cf14 -[UIView(Hierarchy) _willMoveToWindow:withAncestorView:] + 596
15 UIKit 0x000000018693c13c -[UIView(Internal) _addSubview:positioned:relativeTo:] + 444
16 UIKit 0x000000018693b7e8 -[UIWindow addRootViewControllerViewIfPossible] + 664
17 UIKit 0x0000000186938a88 -[UIWindow _setHidden:forced:] + 252
18 UIKit 0x00000001869aefa4 -[UIWindow makeKeyAndVisible] + 48
19 UIKit 0x0000000186bda3ac -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3456
20 UIKit 0x0000000186bde5f0 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1684
21 UIKit 0x0000000186bdb764 -[UIApplication workspaceDidEndTransaction:] + 168
22 FrontBoardServices 0x000000018317f7ac __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36
23 FrontBoardServices 0x000000018317f618 -[FBSSerialQueue _performNext] + 168
24 FrontBoardServices 0x000000018317f9c8 -[FBSSerialQueue _performNextFromRunLoopSource] + 56
25 CoreFoundation 0x000000018179509c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
26 CoreFoundation 0x0000000181794b30 __CFRunLoopDoSources0 + 540
27 CoreFoundation 0x0000000181792830 __CFRunLoopRun + 724
28 CoreFoundation 0x00000001816bcc50 CFRunLoopRunSpecific + 384
29 UIKit 0x00000001869a394c -[UIApplication _run] + 460
30 UIKit 0x000000018699e088 UIApplicationMain + 204
31 Sportito 0x000000010002e860 main (AppDelegate.swift:42)
32 libdyld.dylib 0x000000018125a8b8 start + 4

最佳答案

应用是否设置为通用?当您在 iPhone 上测试时,他们会不会在 iPad 上崩溃,反之亦然?

关于ios - UITableView IBOutlet 在 ViewDidLoad 上崩溃,Apple Beta 审查小组不适合我,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37387891/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com