             case "iPod5,1": return .pod(.touch5g)
             case "iPod7,1": return .pod(.touch6g)
             case "iPod9,1": return .pod(.touch7g)
-                
+            
             case "AppleTV5,3": return .tv(.tv4g)
             case "AppleTV6,2": return .tv(.tv4k)
-                
+            case "AppleTV11,1": return .tv(.tv4k2)
+            
             case "i386", "x86_64": return .simulator
-                
+            
             default:
                 if deviceCode.contains("iPhone") { return .phone(.unknown) }
                 else if deviceCode.contains("iPad") { return .pad(.unknown) }

            case "iPhone13,2": return .phone(.iPhone12)
            case "iPhone13,3": return .phone(.iPhone12Pro)
            case "iPhone13,4": return .phone(.iPhone12ProMax)
                
            case "iPad1,1": return .pad(.iPad1)
            case "iPad2,1", "iPad2,2", "iPad2,3", "iPad2,4": return .pad(.iPad2)
            case "iPad3,1", "iPad3,2", "iPad3,3": return .pad(.iPad3)

        case tv4g
        /// The Apple TV 4K.
        case tv4k
        /// The Apple TV 4K 2.
        case tv4k2
    }

    #if swift(>=4.2)
