Skip to content

Commit f3092e0

Browse files
committed
fix: fwk name
Signed-off-by: 82Flex <82flex@gmail.com>
1 parent eea6516 commit f3092e0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

TrollFools/InjectorV3+Inject.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ extension InjectorV3 {
133133

134134
let dylibs = try loadedDylibsOfMachO(machO)
135135
for dylib in dylibs {
136-
if Self.ignoredDylibAndFrameworkNames.firstIndex(where: { dylib.hasSuffix("/\($0)") }) != nil {
136+
if Self.ignoredDylibAndFrameworkNames.firstIndex(where: { dylib.lowercased().hasSuffix("/\($0)") }) != nil {
137137
try cmdChangeLoadCommandDylib(machO, from: dylib, to: "@executable_path/Frameworks/\(Self.substrateFwkName)/\(Self.substrateName)")
138138
}
139139
}

TrollFools/InjectorV3+Preprocess.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ extension InjectorV3 {
8181

8282
try markBundlesAsInjected(urlsToMarkAsInjected, privileged: false)
8383

84-
preparedAssetURLs.removeAll(where: { Self.ignoredDylibAndFrameworkNames.contains($0.lastPathComponent) })
84+
preparedAssetURLs.removeAll(where: { Self.ignoredDylibAndFrameworkNames.contains($0.lastPathComponent.lowercased()) })
8585
guard !preparedAssetURLs.isEmpty else {
8686
throw Error.generic(NSLocalizedString("No valid plug-ins found.", comment: ""))
8787
}

0 commit comments

Comments
 (0)