应用已拒绝 - 崩溃日志

时间:2017-03-21 07:28:29

标签: ios swift ipv6

有人可以向我解释这个崩溃日志是什么意思吗?

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

提前谢谢

1 个答案:

答案 0 :(得分:0)

在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)