Skip to content

Commit 0e3efe3

Browse files
committed
fix: crash in release build
1 parent 8d8d5c0 commit 0e3efe3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

MacHelix/MacHelixApp.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ struct HelixApp: App {
1111
var args: [String] = CommandLine.arguments
1212

1313
init() {
14+
#if DEBUG
1415
if args[1] == "-NSDocumentRevisionsDebugMode" {
1516
args.remove(atOffsets: IndexSet([1, 2]))
1617
}
18+
#endif
1719
print(args)
1820
self.viewStore = ViewStore(self.store, observe: { $0 })
1921
}

0 commit comments

Comments
 (0)