Skip to content

VoiceStudio is the open-source, fully-local ElevenLabs alternative — voice cloning, voice design, video dubbing, dictation, transcription & audiobook creation in 646 languages.

test(ios): expect the release triple as the bundle marketing version (#3203)

Palash Debnath38740bf77628
diff --git a/mobile/ios/VoiceStudioKit/Tests/VoiceStudioKitTests/FixRegressionTests.swift b/mobile/ios/VoiceStudioKit/Tests/VoiceStudioKitTests/FixRegressionTests.swift
index 4220723d3..359f96c3a 100644
--- a/mobile/ios/VoiceStudioKit/Tests/VoiceStudioKitTests/FixRegressionTests.swift
+++ b/mobile/ios/VoiceStudioKit/Tests/VoiceStudioKitTests/FixRegressionTests.swift
@@ -176,7 +176,8 @@ func playbackUsesMinutesAndSeconds(_ sample: (Double, String)) { #expect(Playbac
#expect(catalog.language("es")?.name == "Spanish")
let rootVersion = try #require((JSONSerialization.jsonObject(with: Data(contentsOf: repository.appendingPathComponent("package.json"))) as? [String: Any])?["version"] as? String)
let info = try #require(PropertyListSerialization.propertyList(from: Data(contentsOf: output.appendingPathComponent("Info.plist")), format: nil) as? [String: Any])
- #expect(info["CFBundleShortVersionString"] as? String == rootVersion)
+ // App Store Connect takes only X.Y.Z, so a beta bundles as its release triple.
+ #expect(info["CFBundleShortVersionString"] as? String == rootVersion.split(separator: "-").first.map(String.init))
for locale in L10n.languages {
let strings = try #require(PropertyListSerialization.propertyList(from: Data(contentsOf: output.appendingPathComponent(locale + ".lproj/InfoPlist.strings")), format: nil) as? [String: String])
#expect(strings["NSMicrophoneUsageDescription"]?.isEmpty == false)