【问题标题】:Crash on Apple Review - iOSApple 评论崩溃 - iOS
【发布时间】:2017-03-08 06:19:59
【问题描述】:

我曾多次提交申请以进行审核。 但每次苹果测试员都说应用程序崩溃。 我在环境 IPV4 中测试我的应用程序。 完全没有崩溃,但苹果测试员说启动时崩溃如下。 是IPV6的问题吗?我无法在环境 IPV6 中测试。

感谢您重新提交。我们无法将您的应用审核为 它在发射时坠毁。我们附上了详细的崩溃日志以提供帮助 解决此问题。

重现步骤:

1) 在设备上启动应用 2) 应用尝试启动并崩溃

接下来的步骤

请修改您的应用并在连接到 IPv6 网络(所有应用程序必须支持 IPv6)以确保它能够启动 不会崩溃。

Date/Time:           2016-10-25 13:02:41.6759 -0700
Launch Time:         2016-10-25 13:02:40.6012 -0700
OS Version:          iPhone OS 10.0.2 (14A456)
Report Version:      104

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x000000010014c3fc
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [0]
Triggered by Thread:  0

Filtered syslog:
None found

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   BBBApps                         0x000000010014c3fc 0x1000e4000 + 427004
1   BBBApps                         0x0000000100149420 0x1000e4000 + 414752
2   UIKit                           0x000000018d0a342c 0x18d021000 + 533548
3   UIKit                           0x000000018d2b3b70 0x18d021000 + 2698096
4   UIKit                           0x000000018d2b98e0 0x18d021000 + 2722016
5   UIKit                           0x000000018d2ce080 0x18d021000 + 2805888
6   UIKit                           0x000000018d2b68c4 0x18d021000 + 2709700
7   FrontBoardServices              0x0000000188d898bc 0x188d4f000 + 239804
8   FrontBoardServices              0x0000000188d89728 0x188d4f000 + 239400
9   FrontBoardServices              0x0000000188d89ad0 0x188d4f000 + 240336
10  CoreFoundation                  0x0000000187196278 0x1870b9000 + 905848
11  CoreFoundation                  0x0000000187195bc0 0x1870b9000 + 904128
12  CoreFoundation                  0x00000001871937c0 0x1870b9000 + 894912
13  CoreFoundation                  0x00000001870c2048 0x1870b9000 + 36936
14  UIKit                           0x000000018d09c5dc 0x18d021000 + 505308
15  UIKit                           0x000000018d097360 0x18d021000 + 484192
16  BBBApps                         0x00000001000ea5e4 0x1000e4000 + 26084
17  libdyld.dylib                   0x00000001860a45b8 0x1860a0000 + 17848

这里是 Crashlytics 的崩溃报告:

#0. Crashed: com.apple.main-thread
0  BBBApps                       0x10009183c specialized AppDelegate.application(UIApplication, didFinishLaunchingWithOptions : [NSObject : AnyObject]?) -> Bool (AppDelegate.swift:39)
1  BBBApps                       0x10008ecbc @objc AppDelegate.application(UIApplication, didFinishLaunchingWithOptions : [NSObject : AnyObject]?) -> Bool (AppDelegate.swift)
2  UIKit                          0x19235b42c -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 400
3  UIKit                          0x19256bb70 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3524
4  UIKit                          0x1925718e0 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1656
5  UIKit                          0x192586080 __84-[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke.3134 + 48
6  UIKit                          0x19256e8c4 -[UIApplication workspaceDidEndTransaction:] + 168
7  FrontBoardServices             0x18e0418bc __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36
8  FrontBoardServices             0x18e041728 -[FBSSerialQueue _performNext] + 176
9  FrontBoardServices             0x18e041ad0 -[FBSSerialQueue _performNextFromRunLoopSource] + 56
10 CoreFoundation                 0x18c44e278 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
11 CoreFoundation                 0x18c44dbc0 __CFRunLoopDoSources0 + 524
12 CoreFoundation                 0x18c44b7c0 __CFRunLoopRun + 804
13 CoreFoundation                 0x18c37a048 CFRunLoopRunSpecific + 444
14 UIKit                          0x1923545dc -[UIApplication _run] + 608
15 UIKit                          0x19234f360 UIApplicationMain + 208
16 BBBApps                       0x10008f9d4 main (AppDelegate.swift:17)
17 libdispatch.dylib              0x18b35c5b8 (Missing)

【问题讨论】:

  • 你找到解决这个问题的方法了吗?

标签: crash ios9 xcode8 ios10


【解决方案1】:

Trace/BPT 陷阱 5 通常与缺少的共享库有关 (.dylib files)。

在您的情况下,以下行建议您缺少哪一个:

17 libdispatch.dylib              0x18b35c5b8 (Missing)

确保您的应用可以正确访问它(使用它编译),或者您已将它正确地包含在您的应用中。

您可以使用otool (-L) 命令行工具来检查有关缺少的依赖项的更多详细信息。

【讨论】:

    【解决方案2】:

    您可以使用您的 mac 共享 IPV6 网络。

    1. 打开系统偏好设置
    2. 按住 Option 键并单击“共享”首选项窗格
    3. 按住 Option 键并单击 Internet 共享
    4. 将出现“仅创建 IPv6 网络”复选框
    5. 选中创建仅 IPv6 网络(这也可能标记为创建 NAT64 网络)
    6. 选择要共享的接口(通常是 WiFi,以允许 iOS 设备连接。)
    7. 选中复选框以开始互联网共享

    Source

    【讨论】:

    • 我已经检查过这种方式,但没有崩溃。
    • 你在用iOS10测试吗? (因为我看到你在这个问题中添加了一个“iOS9”标签)
    • 是的,我在iOS10上测试
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-04-07
    • 2015-03-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-09-16
    相关资源
    最近更新 更多