Skip to content

Commit b42788f

Browse files
authored
build: add escape from failed guard condition (#114)
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.
1 parent 8457ea3 commit b42788f

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

Mux-Upload-SDK.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22
s.name = 'Mux-Upload-SDK'
33
s.module_name = 'MuxUploadSDK'
4-
s.version = '1.0.0'
4+
s.version = '1.0.1'
55
s.summary = 'Upload video to Mux.'
66
s.description = 'A library for uploading video to Mux. Similar to UpChunk, but for iOS.'
77

Sources/MuxUploadSDK/PublicAPI/AVFoundation+DirectUpload/DirectUpload+AVFoundation.swift

+1-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ extension DirectUpload {
2323
options: DirectUploadOptions
2424
) {
2525
guard let urlAsset = inputAsset as? AVURLAsset else {
26-
precondition(
27-
false,
26+
fatalError(
2827
"Only assets with URLs can be uploaded"
2928
)
3029
}

Sources/MuxUploadSDK/PublicAPI/SemanticVersion.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public struct SemanticVersion {
1414
/// Minor version component.
1515
public static let minor = 0
1616
/// Patch version component.
17-
public static let patch = 0
17+
public static let patch = 1
1818

1919
/// String form of the version number in the format X.Y.Z
2020
/// where X, Y, and Z are the major, minor, and patch

0 commit comments

Comments
 (0)