快速打印不打印到控制台

时间:2023-01-23 17:15:15

For some reason print is not printing anything to the console. I ran the debugger and it's definitely being called.

由于某种原因,打印不会向控制台打印任何内容。我运行调试器,它肯定被调用。

Do I need to set some kind of setting? I've got "All Output" selected

我需要设置某种设置吗?我选择了“全部输出”

override func viewDidLoad() {
        super.viewDidLoad()
        print("viewDidLoad")
}

This is the only thing in my console

这是我的控制台中唯一的东西

快速打印不打印到控制台

1 个解决方案

#1


0  

Found the issue

发现了这个问题

deep in the project, hidden among lines of code...I found!

在项目的深处,隐藏在代码行之间......我找到了!

public func debugPrint(_ items: Any..., separator: String = " ", terminator: String = "\n") {}
public func print(_ items: Any..., separator: String = " ", terminator: String = "\n") {}

Actually, it was at the top of AppDelegate...oops

实际上,它是AppDelegate的顶部......哎呀

#1


0  

Found the issue

发现了这个问题

deep in the project, hidden among lines of code...I found!

在项目的深处,隐藏在代码行之间......我找到了!

public func debugPrint(_ items: Any..., separator: String = " ", terminator: String = "\n") {}
public func print(_ items: Any..., separator: String = " ", terminator: String = "\n") {}

Actually, it was at the top of AppDelegate...oops

实际上,它是AppDelegate的顶部......哎呀