Skip to content

Commit 58886bd

Browse files
committed
Update the fastlane snapshot helper
1 parent aae066c commit 58886bd

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

fastlane/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ xcode-select --install
2727
<td width="33%"><code>sudo gem install fastlane -NV</code></td>
2828
</tr>
2929
</table>
30+
3031
# Available Actions
3132
## iOS
3233
### ios icons

fastlane/SnapshotHelper.swift

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
// Copyright © 2015 Felix Krause. All rights reserved.
77
//
88

9+
// -----------------------------------------------------
10+
// IMPORTANT: When modifying this file, make sure to
11+
// increment the version number at the very
12+
// bottom of the file to notify users about
13+
// the new SnapshotHelper.swift
14+
// -----------------------------------------------------
15+
916
import Foundation
1017
import XCTest
1118

@@ -145,7 +152,7 @@ open class Snapshot: NSObject {
145152
print("Can't prepare environment. Simulator home location is inaccessible. Does \(simulatorHostHome) exist?")
146153
return nil
147154
}
148-
homeDir = homeDirUrl
155+
homeDir = URL(fileURLWithPath: homeDirUrl.path)
149156
#endif
150157
return homeDir.appendingPathComponent("Library/Caches/tools.fastlane")
151158
}
@@ -163,4 +170,4 @@ extension XCUIElement {
163170

164171
// Please don't remove the lines below
165172
// They are used to detect outdated configuration files
166-
// SnapshotHelperVersion [1.3]
173+
// SnapshotHelperVersion [1.4]

0 commit comments

Comments
 (0)