Skip to content

Commit 814799a

Browse files
committed
Update the fastlane snapshot helper
1 parent 23e9332 commit 814799a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

fastlane/SnapshotHelper.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,14 @@ open class Snapshot: NSObject {
114114
} catch {
115115
print("Couldn't detect/set locale...")
116116
}
117+
117118
if locale.isEmpty {
118119
locale = Locale(identifier: deviceLanguage).identifier
119120
}
120-
app.launchArguments += ["-AppleLocale", "\"\(locale)\""]
121+
122+
if !locale.isEmpty {
123+
app.launchArguments += ["-AppleLocale", "\"\(locale)\""]
124+
}
121125
}
122126

123127
class func setLaunchArguments(_ app: XCUIApplication) {
@@ -273,4 +277,4 @@ private extension CGFloat {
273277

274278
// Please don't remove the lines below
275279
// They are used to detect outdated configuration files
276-
// SnapshotHelperVersion [1.12]
280+
// SnapshotHelperVersion [1.13]

0 commit comments

Comments
 (0)