Skip to content

Commit 0ca1e08

Browse files
committed
fix: dont inject into non-arm64 slices
1 parent b3f25a1 commit 0ca1e08

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

inject.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ func injectLC(fsPath, bundleID, lcName, tmpdir string) error {
2424

2525
var slices []string
2626
for _, arch := range fat.Arches {
27+
if arch.SubCPU > 2 {
28+
continue // skip armv7 and other unsupported architectures
29+
}
30+
2731
if err = addDylibCommand(arch.File, lcName, bundleID); err != nil {
2832
return err
2933
}

0 commit comments

Comments
 (0)