gpt4 book ai didi

swift5 - 进程 kill() 返回意外错误 1 ​​Xcode 11.2 - iOS 13.2 - Swift 5

转载 作者:行者123 更新时间:2023-12-03 23:50:20 25 4
gpt4 key购买 nike

谷歌翻译的文字

我正在使用 webview,当我将数据上传到 webview 时,它会向我显示这些消息。我应该修改什么,它是一个错误,它会导致我的应用程序出现问题吗?

import UIKit
import WebKit

class BeneficiosViewController: UIViewController , WKNavigationDelegate{

// MARK: - Declarando Variables
var webView: WKWebView!

// MARK: - LOAD
override func viewDidLoad() {
super.viewDidLoad()

self.title = "Beneficios"
self.navigationController?.navigationBar.titleTextAttributes=[NSAttributedString.Key.font: UIFont(name: "carnas", size: 22) as Any]

let url = URL(string: "https://www.sites.google.com/pageweb")
webView.load(URLRequest(url: url!))
webView.addObserver(self, forKeyPath: #keyPath(WKWebView.estimatedProgress), options: .new, context: nil)

webView.allowsBackForwardNavigationGestures = true

}
// MARK: - Funcion para cargar una web
override func loadView(){
webView = WKWebView()
webView.navigationDelegate = self
view = webView
}
override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey : Any]?, context: UnsafeMutableRawPointer?) {
if keyPath == "......."{
print(Float(webView.estimatedProgress))
}
}
}

日志详情:
2019-11-22 09:02:25.003545-0500 ScharffDev[6600:1264134] [Process] kill() returned unexpected error 1
2019-11-22 09:02:25.003696-0500 ScharffDev[6600:1264134] [Process] kill() returned unexpected error 1
2019-11-22 09:02:25.004011-0500 ScharffDev[6600:1264134] [Process] kill() returned unexpected error 1
2019-11-22 09:02:25.004173-0500 ScharffDev[6600:1264134] [Process] kill() returned unexpected error 1
2019-11-22 09:02:25.004466-0500 ScharffDev[6600:1264134] [Process] kill() returned unexpected error 1
2019-11-22 09:02:25.004614-0500 ScharffDev[6600:1264134] [Process] kill() returned unexpected error 1
2019-11-22 09:02:25.004820-0500 ScharffDev[6600:1264134] [Process] kill() returned unexpected error 1
2019-11-22 09:02:25.004965-0500 ScharffDev[6600:1264134] [Process] kill() returned unexpected error 1

Error image

最佳答案

苹果终于修复了这个错误。更新到 iOS 13.4 会使错误消息消失。
这只是操作系统(版本 13.2 和 13.3)的一个错误,不会导致应用程序崩溃。

关于swift5 - 进程 kill() 返回意外错误 1 ​​Xcode 11.2 - iOS 13.2 - Swift 5,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58995987/

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