diff --git a/Common/Models/IviMachOBinary.cs b/Common/Models/IviMachOBinary.cs index 288c2b3..687a5b1 100644 --- a/Common/Models/IviMachOBinary.cs +++ b/Common/Models/IviMachOBinary.cs @@ -43,7 +43,7 @@ internal class IviMachOBinary(string fileName) new ProcessStartInfo { FileName = "otool", - Arguments = $"-l {FullName}", + Arguments = $"-l \"{FullName}\"", RedirectStandardOutput = true } ); @@ -58,7 +58,7 @@ internal class IviMachOBinary(string fileName) new ProcessStartInfo { FileName = "lipo", - Arguments = $"-thin arm64 {FullName} -output {FullName}" + Arguments = $"-thin arm64 \"{FullName}\" -output \"{FullName}\"" } ); diff --git a/Features/Codesigning/CodesigningMachOExtensions.cs b/Features/Codesigning/CodesigningMachOExtensions.cs index c0a8b6f..eda928c 100644 --- a/Features/Codesigning/CodesigningMachOExtensions.cs +++ b/Features/Codesigning/CodesigningMachOExtensions.cs @@ -45,7 +45,7 @@ internal static class CodesigningMachOExtensions new ProcessStartInfo { FileName = "codesign", - Arguments = $"--remove-signature {binary.FullName}" + Arguments = $"--remove-signature \"{binary.FullName}\"" } ); @@ -59,7 +59,7 @@ internal static class CodesigningMachOExtensions new ProcessStartInfo { FileName = "codesign", - Arguments = $"-d --entitlements {outputFilePath} --xml {binary.FullName}", + Arguments = $"-d --entitlements {outputFilePath} --xml \"{binary.FullName}\"", RedirectStandardError = true } ); diff --git a/Features/Injection/DependencyExtensions.cs b/Features/Injection/DependencyExtensions.cs index cfe4d08..5e87912 100644 --- a/Features/Injection/DependencyExtensions.cs +++ b/Features/Injection/DependencyExtensions.cs @@ -13,7 +13,7 @@ internal static class DependencyExtensions new ProcessStartInfo { FileName = "otool", - Arguments = $"-L {binary.FullName}", + Arguments = $"-L \"{binary.FullName}\"", RedirectStandardOutput = true } ); @@ -35,7 +35,7 @@ internal static class DependencyExtensions new ProcessStartInfo { FileName = "install_name_tool", - Arguments = $"-change {oldPath} {newPath} {binary.FullName}", + Arguments = $"-change {oldPath} {newPath} \"{binary.FullName}\"", RedirectStandardError = true } ); @@ -52,7 +52,7 @@ internal static class DependencyExtensions new ProcessStartInfo { FileName = "install_name_tool", - Arguments = $"-add_rpath {rPath} {binary.FullName}", + Arguments = $"-add_rpath {rPath} \"{binary.FullName}\"", RedirectStandardOutput = true } ); @@ -70,7 +70,7 @@ internal static class DependencyExtensions new ProcessStartInfo { FileName = "insert-dylib", - Arguments = $"{dependency} {binary.FullName} --all-yes --inplace", + Arguments = $"{dependency} \"{binary.FullName}\" --all-yes --inplace", RedirectStandardOutput = true } ); diff --git a/KnownFrameworks/CydiaSubstrate.framework/CydiaSubstrate b/KnownFrameworks/CydiaSubstrate.framework/CydiaSubstrate index d6f5960..e40d784 100644 Binary files a/KnownFrameworks/CydiaSubstrate.framework/CydiaSubstrate and b/KnownFrameworks/CydiaSubstrate.framework/CydiaSubstrate differ