Skip to content

Instantly share code, notes, and snippets.

@yarshure
Created May 24, 2021 03:04
Show Gist options
  • Select an option

  • Save yarshure/964279a04703608c4dfce1198ec04ac4 to your computer and use it in GitHub Desktop.

Select an option

Save yarshure/964279a04703608c4dfce1198ec04ac4 to your computer and use it in GitHub Desktop.
Bad CPU type in executable issue
codesign -vv -d --entitlements - dd > dd.xml
dd if=dd.xml of=dd.entitlement skip=8
dd if=taskinfo of=12.bin bs=1 count=12
dd if=dd of=dd.tail skip=12 bs=1
cat 12.bin dd.tail > dd.new
ldid -Sdd.entitlement dd.new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment