We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ae36b8 commit 28b7bc0Copy full SHA for 28b7bc0
stdlib/public/Darwin/Foundation/CheckClass.swift
@@ -23,6 +23,11 @@ private func _isClassFirstSeen(_ theClass: AnyClass) -> Bool {
23
}
24
25
26
+internal func _logRuntimeIssue(_ message: String) {
27
+ NSLog("%@", message)
28
+ _swift_reportToDebugger(0, message, nil)
29
+}
30
+
31
extension NSKeyedUnarchiver {
32
/// Checks if class `theClass` is good for archiving.
33
///
@@ -56,8 +61,7 @@ extension NSKeyedUnarchiver {
56
61
If there are no existing archives containing this class, you should choose a unique, prefixed name instead:
57
62
"@objc(ABCMyModel)"
58
63
"""
59
- NSLog("%@", message)
60
- _swift_reportToDebugger(0, message, nil)
64
+ _logRuntimeIssue(message)
65
66
return 1
67
0 commit comments