Skip to content

Commit 73dade3

Browse files
committed
chore: remove codesignature before injecting (v1.1.3)
1 parent 037f5a5 commit 73dade3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type Args struct {
3131
}
3232

3333
func (Args) Version() string {
34-
return "ipapatch v1.1.2"
34+
return "ipapatch v1.1.3"
3535
}
3636

3737
func AskInteractively(question string) bool {

inject.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ func addDylibCommand(m *macho.File, name string) error {
7272
for i := len(m.Loads) - 1; i >= 0; i-- {
7373
lc := m.Loads[i]
7474
cmd := lc.Command()
75+
if cmd == types.LC_CODE_SIGNATURE {
76+
m.RemoveLoad(lc)
77+
}
7578
if cmd != types.LC_LOAD_WEAK_DYLIB && cmd != types.LC_LOAD_DYLIB {
7679
continue
7780
}

0 commit comments

Comments
 (0)