Skip to content

Commit 51137ac

Browse files
committed
Fix build failure on tvOS
#available was only targeting iOS for the public key creation in 'decompress(publicKey:shouldAddPrefix:)`.
1 parent 7211159 commit 51137ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/ATCryptography/p256/P256Encoding.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public struct P256Encoding {
8080

8181
// Convert to an uncompressed public key.
8282
var uncompressedRawPublicKey: [Data.Element]
83-
if #available(iOS 16.0, *) {
83+
if #available(iOS 16.0, tvOS 16, *) {
8484
let key = try P256.Signing.PublicKey(compressedRepresentation: compressedPublicKey)
8585
uncompressedRawPublicKey = Array(key.rawRepresentation)
8686
} else {

0 commit comments

Comments
 (0)