From 00151ac2751bd6cf8bcbe1e995ceeb94c26b490c Mon Sep 17 00:00:00 2001 From: AJ Lauer Barinov Date: Thu, 20 Jun 2024 09:48:14 -0700 Subject: [PATCH 1/2] build: add escape from failed guard condition precondition gets elided by optimizer under certain optimization modes and results in a build error. Replace with fatalError always remains --- .../AVFoundation+DirectUpload/DirectUpload+AVFoundation.swift | 3 +-- Sources/MuxUploadSDK/PublicAPI/SemanticVersion.swift | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Sources/MuxUploadSDK/PublicAPI/AVFoundation+DirectUpload/DirectUpload+AVFoundation.swift b/Sources/MuxUploadSDK/PublicAPI/AVFoundation+DirectUpload/DirectUpload+AVFoundation.swift index 9b6115f..d9757fb 100644 --- a/Sources/MuxUploadSDK/PublicAPI/AVFoundation+DirectUpload/DirectUpload+AVFoundation.swift +++ b/Sources/MuxUploadSDK/PublicAPI/AVFoundation+DirectUpload/DirectUpload+AVFoundation.swift @@ -23,8 +23,7 @@ extension DirectUpload { options: DirectUploadOptions ) { guard let urlAsset = inputAsset as? AVURLAsset else { - precondition( - false, + fatalError( "Only assets with URLs can be uploaded" ) } diff --git a/Sources/MuxUploadSDK/PublicAPI/SemanticVersion.swift b/Sources/MuxUploadSDK/PublicAPI/SemanticVersion.swift index 15c894c..3f95bc2 100644 --- a/Sources/MuxUploadSDK/PublicAPI/SemanticVersion.swift +++ b/Sources/MuxUploadSDK/PublicAPI/SemanticVersion.swift @@ -14,7 +14,7 @@ public struct SemanticVersion { /// Minor version component. public static let minor = 0 /// Patch version component. - public static let patch = 0 + public static let patch = 1 /// String form of the version number in the format X.Y.Z /// where X, Y, and Z are the major, minor, and patch From 99cdde332c1847fb761e9a324227e8119f34e11a Mon Sep 17 00:00:00 2001 From: AJ Lauer Barinov Date: Thu, 20 Jun 2024 10:40:22 -0700 Subject: [PATCH 2/2] update podspec --- Mux-Upload-SDK.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mux-Upload-SDK.podspec b/Mux-Upload-SDK.podspec index c36a794..bde3625 100644 --- a/Mux-Upload-SDK.podspec +++ b/Mux-Upload-SDK.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = 'Mux-Upload-SDK' s.module_name = 'MuxUploadSDK' - s.version = '1.0.0' + s.version = '1.0.1' s.summary = 'Upload video to Mux.' s.description = 'A library for uploading video to Mux. Similar to UpChunk, but for iOS.'