1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2026-03-30 16:30:09 +02:00

🐛 Fix filesystem crash (only Intel container init code path)

This commit is contained in:
2025-11-21 21:17:39 +01:00
parent cd0af7ce78
commit 0f2f281324
2 changed files with 9 additions and 4 deletions

View File

@@ -3960,7 +3960,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1730;
CURRENT_PROJECT_VERSION = 1735;
DEAD_CODE_STRIPPING = YES;
DEBUG = YES;
ENABLE_APP_SANDBOX = NO;
@@ -4004,7 +4004,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1730;
CURRENT_PROJECT_VERSION = 1735;
DEAD_CODE_STRIPPING = YES;
DEBUG = NO;
ENABLE_APP_SANDBOX = NO;
@@ -4186,7 +4186,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1730;
CURRENT_PROJECT_VERSION = 1735;
DEAD_CODE_STRIPPING = YES;
DEBUG = YES;
ENABLE_APP_SANDBOX = NO;
@@ -4379,7 +4379,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1730;
CURRENT_PROJECT_VERSION = 1735;
DEAD_CODE_STRIPPING = YES;
DEBUG = NO;
ENABLE_APP_SANDBOX = NO;

View File

@@ -10,6 +10,11 @@ import Foundation
extension String {
var replacingTildeWithHomeDirectory: String {
// Skip replacement if not necessary
if !self.contains("~") {
return self
}
// Try and check if there's a shared container
if let paths = App.shared.container.paths {
return self.replacing("~", with: paths.homePath)