Skip to content

Commit 0f2f281

Browse files
🐛 Fix filesystem crash (only Intel container init code path)
1 parent cd0af7c commit 0f2f281

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

PHP Monitor.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3960,7 +3960,7 @@
39603960
CODE_SIGN_IDENTITY = "Apple Development";
39613961
CODE_SIGN_STYLE = Automatic;
39623962
COMBINE_HIDPI_IMAGES = YES;
3963-
CURRENT_PROJECT_VERSION = 1730;
3963+
CURRENT_PROJECT_VERSION = 1735;
39643964
DEAD_CODE_STRIPPING = YES;
39653965
DEBUG = YES;
39663966
ENABLE_APP_SANDBOX = NO;
@@ -4004,7 +4004,7 @@
40044004
CODE_SIGN_IDENTITY = "Apple Development";
40054005
CODE_SIGN_STYLE = Automatic;
40064006
COMBINE_HIDPI_IMAGES = YES;
4007-
CURRENT_PROJECT_VERSION = 1730;
4007+
CURRENT_PROJECT_VERSION = 1735;
40084008
DEAD_CODE_STRIPPING = YES;
40094009
DEBUG = NO;
40104010
ENABLE_APP_SANDBOX = NO;
@@ -4186,7 +4186,7 @@
41864186
CODE_SIGN_IDENTITY = "Apple Development";
41874187
CODE_SIGN_STYLE = Automatic;
41884188
COMBINE_HIDPI_IMAGES = YES;
4189-
CURRENT_PROJECT_VERSION = 1730;
4189+
CURRENT_PROJECT_VERSION = 1735;
41904190
DEAD_CODE_STRIPPING = YES;
41914191
DEBUG = YES;
41924192
ENABLE_APP_SANDBOX = NO;
@@ -4379,7 +4379,7 @@
43794379
CODE_SIGN_IDENTITY = "Apple Development";
43804380
CODE_SIGN_STYLE = Automatic;
43814381
COMBINE_HIDPI_IMAGES = YES;
4382-
CURRENT_PROJECT_VERSION = 1730;
4382+
CURRENT_PROJECT_VERSION = 1735;
43834383
DEAD_CODE_STRIPPING = YES;
43844384
DEBUG = NO;
43854385
ENABLE_APP_SANDBOX = NO;

phpmon/Common/Filesystem/RealFileSystem.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ import Foundation
1010

1111
extension String {
1212
var replacingTildeWithHomeDirectory: String {
13+
// Skip replacement if not necessary
14+
if !self.contains("~") {
15+
return self
16+
}
17+
1318
// Try and check if there's a shared container
1419
if let paths = App.shared.container.paths {
1520
return self.replacing("~", with: paths.homePath)

0 commit comments

Comments
 (0)