gpt4 book ai didi

swift3 - 应用因在iPv6上崩溃而被拒绝

转载 作者:行者123 更新时间:2023-12-03 15:58:40 24 4
gpt4 key购买 nike

最近,我的应用由于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()
}
}

}

现在,经过很多努力,我一直无法找到崩溃。我的服务器必须支持iPv6吗?如果是这样,为什么其他所有api都起作用,而崩溃仅在该api上发生。请给我建议。

最佳答案

我再次上​​传了它,没有更改任何代码,并且批准了它,但这很奇怪。这发生在我两个应用程序中。

关于swift3 - 应用因在iPv6上崩溃而被拒绝,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43272321/

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