This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
## | |
## This script converts an IPS crash report (.ips) to the legacy crash report format. | |
## | |
## The .ips file (JSON) is read from STDIN and the legacy crash report is written to | |
## STDOUT. | |
## | |
use strict; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
protocol KeyPathListable { | |
var allKeyPaths: [String: PartialKeyPath<Self>] { get } | |
var keyPathsList: [PartialKeyPath<Self>] { get } | |
} | |
extension KeyPathListable { | |
private subscript(checkedMirrorDescendant key: String) -> Any { | |
Mirror(reflecting: self).descendant(key)! |