XVim2 icon indicating copy to clipboard operation
XVim2 copied to clipboard

Use --remove-signature for getting XVim2 onto new versions of Xcode?

Open michaeleisel opened this issue 5 years ago • 6 comments

codesign can be run with the undocumented --remove-signature flag to remove the signature of Xcode. It works for me to do this to use XVim2, and it's much faster than the usual codesign invocation in the steps. Not sure if there are any tradeoffs, security or otherwise, but it could be a nice shortcut.

michaeleisel avatar Feb 11 '20 18:02 michaeleisel

How much time does it take to execute the command codesign --remove-signature Xcode.app ?

pebble8888 avatar Feb 14 '20 07:02 pebble8888

About one second

michaeleisel avatar Feb 14 '20 15:02 michaeleisel

Just tried this and it seems to work for me. If a few more people can verify maybe SIGNING_Xcode.md could be updated.

timothycosta avatar Mar 05 '20 08:03 timothycosta

Tried it and it worked the first time I opened Xcode.

However, immediately thereafter my entire computer froze...I rebooted three or four times, and opening Xcode would reliably cause the entire thing to freeze and require a hard reboot.

Signing with sudo codesign -f -s <cert> got me back to being able to open Xcode, and with Xvim running.

Running Xcode 11.4.

sashaweiss avatar Apr 04 '20 00:04 sashaweiss

Perhaps we could go with the more conservative approach, of adding --digest-algorithm=sha1 instead. This will keep code signing, but it will use sha-1, which is faster than the default sha-256. I haven't verified this myself, but if a few people try it and it works it's probably good to go.

michaeleisel avatar Apr 04 '20 15:04 michaeleisel

Well, in my testing using sha-1 reduces signing time from 3 minutes to 2.5 minutes. So, not a huge win.

michaeleisel avatar Apr 04 '20 15:04 michaeleisel