Skip to content

Instantly share code, notes, and snippets.

@pich4ya
Last active June 17, 2019 16:18
Show Gist options
  • Save pich4ya/6034380b2db5f2f7df9b0e78919ebc57 to your computer and use it in GitHub Desktop.
Save pich4ya/6034380b2db5f2f7df9b0e78919ebc57 to your computer and use it in GitHub Desktop.
Killed: 9 on iPhone 6
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>platform-application</key>
<true/>
<key>get-task-allow</key>
<true/>
<key>task_for_pid-allow</key>
<true/>
<key>com.apple.backboardd.debugapplications</key>
<true/>
<key>com.apple.springboard.debugapplications</key>
<true/>
<key>run-unsigned-code</key>
<true/>
<key>com.apple.private.librarian.can-get-application-info</key>
<true/>
<key>com.apple.private.skip-library-validation</key>
<true/>
<key>com.apple.private.security.no-container</key>
<true/>
<key>com.apple.private.mobileinstall.allowedSPI</key>
<array>
<string>Lookup</string>
<string>CopyInstalledAppsForLaunchServices</string>
</array>
</dict>
</plist>
@author LongCat (Pichaya Morimoto)
-- Fix Binary Code Signing Problem
-- problem: run binary == no output
-- problem: Killed: 9 on iPhone 6
# uname -a
Darwin ggez 17.6.0 Darwin Kernel Version 17.6.0: Mon Apr 30 18:48:33 PDT 2018; root:xnu-4570.60.21~3/RELEASE_ARM64_T7000 iPhone7,2 arm64 N61AP Darwin
# /usr/bin/Clutch2 -i
Killed: 9
; solution
codesign -fs- --entitlements "$CODE_SIGN_ENTITLEMENTS" "build/$EXECUTABLE_NAME"
; where CODE_SIGN_ENTITLEMENTS is the path to the Clutch.entitlements file.
codesign -fs- --entitlements "Clutch/Clutch.entitlements" "build/Clutch"
codesign -vvv -d build/Clutch
scp build/Clutch [email protected]:/usr/bin/Clutch2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment