4

谷歌翻译的文字

我正在使用 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

错误图片

4

1 回答 1

3

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

于 2020-04-13T17:54:27.120 回答