gpt4 book ai didi

ios - nw_read_request_report [C9] 接收失败,错误 "Software caused connection abort"

转载 作者:行者123 更新时间:2023-12-01 16:13:09 24 4
gpt4 key购买 nike

我收到此错误,应用程序连接丢失。从另一个应用程序重定向到我的应用程序时,我遇到了这个问题。此问题仅在实时应用程序上触发,连接丢失时出错,并且在使用 Xcode 调试时出错但成功重定向到特定 View Controller 我使用带有 url 方案的深度链接来处理响应从另一个应用程序。由于无法调试实时应用程序问题,因此仍不清楚存在什么确切问题。
在 iOS 13.2 上工作
在 AppDelegate 中:

func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {

let components = NSURLComponents(url: url, resolvingAgainstBaseURL: true)
let params = components?.queryItems
signedResponse = (params?.first(where:{$0.name == "signedResponse"})?.value)!

self.decodedMsgString = String(data:Data(base64Encoded: signedResponse)!,encoding:.utf8)!

print("decodedMsgString : \(decodedMsgString)")


//Call API here

return true

}

最佳答案

我也遇到了这个问题,也许这可以给你一个见解?
https://forums.developer.apple.com/thread/106838

来自其中一个回复

Following up, we determined that the issue was caused because our app continued to issue new NSURLConnection requests after going into the background and wasn't explicitly making them background tasks. As we didn't need background syncing, putting in code to prevent new requests from going out once the app was in the background eliminated this error.

关于ios - nw_read_request_report [C9] 接收失败,错误 "Software caused connection abort",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59860909/

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