@@ -18,7 +18,7 @@ class MutagenDaemon: FileSyncDaemon {
1818
1919private var mutagenProcess : Process ?
2020private var mutagenPipe : Pipe ?
21- private let mutagenPath : URL
21+ private let mutagenPath : URL !
2222private let mutagenDataDirectory : URL
2323private let mutagenDaemonSocket : URL
2424
@@ -28,10 +28,11 @@ class MutagenDaemon: FileSyncDaemon {
2828
2929init ( ) {
3030#if arch(arm64)
31- mutagenPath= Bundle . main. url ( forResource: " mutagen-darwin-arm64 " , withExtension: nil ) !
31+ mutagenPath= Bundle . main. url ( forResource: " mutagen-darwin-arm64 " , withExtension: nil )
3232#elseif arch(x86_64)
33- mutagenPath= Bundle . main. url ( forResource: " mutagen-darwin-amd64 " , withExtension: nil ) !
33+ mutagenPath= Bundle . main. url ( forResource: " mutagen-darwin-amd64 " , withExtension: nil )
3434#else
35+ mutagenPath= nil
3536fatalError ( " unknown architecture " )
3637#endif
3738 mutagenDataDirectory= FileManager . default. urls (
@@ -41,7 +42,7 @@ class MutagenDaemon: FileSyncDaemon {
4142 mutagenDaemonSocket= mutagenDataDirectory. appending ( path: " daemon " ) . appending ( path: " daemon.sock " )
4243 // It shouldn't be fatal if the app was built without Mutagen embedded,
4344 // but file sync will be unavailable.
44- if !FileManager . default . fileExists ( atPath : mutagenPath. path ) {
45+ if mutagenPath== nil {
4546 logger. warning ( " Mutagen not embedded in app, file sync will be unavailable " )
4647 state= . unavailable
4748}