【问题标题】:App Rejected - Crash Log应用被拒绝 - 崩溃日志
【发布时间】:2017-03-21 07:28:29
【问题描述】:

谁能给我解释一下这个崩溃日志是什么意思?

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   puvoice2                        0x000000010026014c 0x1000fc000 + 1458508
1   puvoice2                        0x000000010025b7b8 0x1000fc000 + 1439672
2   UIKit                           0x0000000197f1d6a4 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 400
3   UIKit                           0x000000019812da98 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3524
4   UIKit                           0x0000000198133808 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1656
5   UIKit                           0x0000000198148104 __84-[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke.3139 + 48
6   UIKit                           0x00000001981307ec -[UIApplication workspaceDidEndTransaction:] + 168
7   FrontBoardServices              0x0000000193bd392c __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36
8   FrontBoardServices              0x0000000193bd3798 -[FBSSerialQueue _performNext] + 176
9   FrontBoardServices              0x0000000193bd3b40 -[FBSSerialQueue _performNextFromRunLoopSource] + 56
10  CoreFoundation                  0x0000000191faab5c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
11  CoreFoundation                  0x0000000191faa4a4 __CFRunLoopDoSources0 + 524
12  CoreFoundation                  0x0000000191fa80a4 __CFRunLoopRun + 804
13  CoreFoundation                  0x0000000191ed62b8 CFRunLoopRunSpecific + 444
14  UIKit                           0x0000000197f167b0 -[UIApplication _run] + 608
15  UIKit                           0x0000000197f11534 UIApplicationMain + 208

提前谢谢你

【问题讨论】:

  • Apple 会发送一些信息,为什么您的应用会崩溃,请分享此信息
  • Apple 拒绝原因:我们无法审核您的应用,因为它在启动时崩溃。我们附上了详细的崩溃日志以帮助解决此问题。后续步骤 请修改您的应用程序并在连接到 IPv6 网络的设备上对其进行测试(所有应用程序必须支持 IPv6),以确保其启动时不会崩溃。注意到我们做了所有的测试并且找不到任何崩溃,该应用程序运行良好。我不知道导致崩溃的原因。
  • 这是 Apple 出于同样原因拒绝的第四个版本。我试图象征崩溃日志,但我得到了我已经在原始问题中发布的文本。
  • 您是否正在使用 Reachability 类和 afnetworking
  • 我们使用 Alamofire 的 NetworkReachabilityManager 而我们没有使用 AFNetworking

标签: ios swift ipv6


【解决方案1】:

更改在 NetworkReachabilityManager 中

  var address = sockaddr_in()
  address.sin_len = UInt8(MemoryLayout<sockaddr_in>.size)
  address.sin_family = sa_family_t(AF_INET)

//对于 IPv6 它将工作

var zeroAddress = sockaddr_in6()
zeroAddress.sin6_len = UInt8(MemoryLayout<sockaddr_in>.size)
zeroAddress.sin6_family = sa_family_t(AF_INET6)

【讨论】:

  • 我会试试这个。
  • 当我更改下面的代码时,NetworkReachabilityManager 的实例返回 nil
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-07-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-10-23
相关资源
最近更新 更多