Skip to content

Commit

Permalink
build: add escape from failed guard condition (#114)
Browse files Browse the repository at this point in the history
the existing precondition escape is removed by the optimizer under certain optimization 
modes and results in a build error. Replace with fatalError which will always be left in.
  • Loading branch information
andrewjl-mux authored Jun 20, 2024
1 parent 8457ea3 commit b42788f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Mux-Upload-SDK.podspec
Original file line number Diff line number Diff line change
@@ -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.'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/MuxUploadSDK/PublicAPI/SemanticVersion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b42788f

Please sign in to comment.