应用程序因 iPv6 崩溃而被拒绝
App rejected due to crash on iPv6
最近我的应用程序由于 iPv6 网络崩溃而被拒绝。但是象征着崩溃报告,即使在 iPv6 上我也无法确定崩溃。
Apple says: Your app crashed on iPad running iOS 10.3.1 connected to
an IPv6 network when we tapped on any of the new articles in the news
tab. This occurred when your app was used:
- On Wi-Fi We have attached detailed crash logs to help troubleshoot this issue
符号化的崩溃报告是:
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0
Crashed:
0 libswiftCore.dylib 0x000000010083e2ac
**swift_unknownRetain (__hidden#18966_:380) 1 *******
0x0000000100026d68 **NewsDetailViewController.getNewsDetail() -> ()**
(NewsDetailViewController.swift:0) 2 ******
0x0000000100025228 NewsDetailViewController.viewDidLoad() -> ()
(NewsDetailViewController.swift:0)
方法:
func getNewsDetail(){
//Checking reachability via apple Reachability class
let reachability: Reachability = Reachability.forInternetConnection()
let networkStatus: Int =
reachability.currentReachabilityStatus().rawValue
if networkStatus == 0{return}
activityIndicatorView.startAnimating()
//WebServices class uses simple NSURLSession tasks
WebServices(type: .get).startRequest(url: AppUrl.NEWS_DETAIL +
(newsDetail?.newsId ?? ""), info: nil) { (response) in
if let data = response?["data"] as?Dictionary<String,String>{
self.setDescription(desc: data["description"])
}else{
self.activityIndicatorView.stopAnimating()
}
}
}
现在费了好大的劲也没找到crash。我的服务器必须支持 iPv6 吗?如果是这样,为什么所有其他 api 都在工作,而崩溃只发生在这个 api 上。请建议我。
我再次上传了它,没有任何代码更改并且它通过了,虽然很奇怪。这在我的两个应用程序中发生过。
最近我的应用程序由于 iPv6 网络崩溃而被拒绝。但是象征着崩溃报告,即使在 iPv6 上我也无法确定崩溃。
Apple says: Your app crashed on iPad running iOS 10.3.1 connected to an IPv6 network when we tapped on any of the new articles in the news tab. This occurred when your app was used: - On Wi-Fi We have attached detailed crash logs to help troubleshoot this issue
符号化的崩溃报告是:
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0
Crashed:
0 libswiftCore.dylib 0x000000010083e2ac
**swift_unknownRetain (__hidden#18966_:380) 1 *******
0x0000000100026d68 **NewsDetailViewController.getNewsDetail() -> ()**
(NewsDetailViewController.swift:0) 2 ******
0x0000000100025228 NewsDetailViewController.viewDidLoad() -> ()
(NewsDetailViewController.swift:0)
方法:
func getNewsDetail(){
//Checking reachability via apple Reachability class
let reachability: Reachability = Reachability.forInternetConnection()
let networkStatus: Int =
reachability.currentReachabilityStatus().rawValue
if networkStatus == 0{return}
activityIndicatorView.startAnimating()
//WebServices class uses simple NSURLSession tasks
WebServices(type: .get).startRequest(url: AppUrl.NEWS_DETAIL +
(newsDetail?.newsId ?? ""), info: nil) { (response) in
if let data = response?["data"] as?Dictionary<String,String>{
self.setDescription(desc: data["description"])
}else{
self.activityIndicatorView.stopAnimating()
}
}
}
现在费了好大的劲也没找到crash。我的服务器必须支持 iPv6 吗?如果是这样,为什么所有其他 api 都在工作,而崩溃只发生在这个 api 上。请建议我。
我再次上传了它,没有任何代码更改并且它通过了,虽然很奇怪。这在我的两个应用程序中发生过。