From db06684ccc0b3d510102135d81e280008407c1bb Mon Sep 17 00:00:00 2001 From: David Jones Date: Tue, 16 Jul 2019 15:21:54 +0100 Subject: [PATCH 1/2] Enable xcode11 build --- .travis.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index fd95b2f..aafcd98 100644 --- a/.travis.yml +++ b/.travis.yml @@ -51,11 +51,10 @@ matrix: - os: osx osx_image: xcode10.2 sudo: required -# Pending Travis Xcode 11 image -# - os: osx -# osx_image: xcode11 -# sudo: required -# env: SWIFT_SNAPSHOT=$SWIFT_DEVELOPMENT_SNAPSHOT + - os: osx + osx_image: xcode11 + sudo: required + env: SWIFT_SNAPSHOT=$SWIFT_DEVELOPMENT_SNAPSHOT before_install: - git clone https://github.com/IBM-Swift/Package-Builder.git From 67cf1f2e2e3832ef5d23908fef8eb21cecf6635f Mon Sep 17 00:00:00 2001 From: David Jones Date: Tue, 16 Jul 2019 15:21:59 +0100 Subject: [PATCH 2/2] Resolve compilation warning --- Sources/CryptorRSA/CryptorRSAUtilities.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/CryptorRSA/CryptorRSAUtilities.swift b/Sources/CryptorRSA/CryptorRSAUtilities.swift index d2e8a82..ae47907 100644 --- a/Sources/CryptorRSA/CryptorRSAUtilities.swift +++ b/Sources/CryptorRSA/CryptorRSAUtilities.swift @@ -231,7 +231,7 @@ public extension CryptorRSA { throw Error(code: ERR_STRIP_PK_HEADER, reason: "Provided public key is empty") } - var byteArray = [UInt8](keyData) + let byteArray = [UInt8](keyData) var index = 0 guard byteArray[index] == 0x30 else {