Skip to content

Instantly share code, notes, and snippets.

@juliendargelos
Last active December 16, 2024 19:16
Show Gist options
  • Save juliendargelos/3ffb4657a95e527df8f92f0d87167433 to your computer and use it in GitHub Desktop.
Save juliendargelos/3ffb4657a95e527df8f92f0d87167433 to your computer and use it in GitHub Desktop.
How to sign a Safari Extension for just one computer?

Signing safari extension

Question and answer with screenshots by kneedhelp (stackoverflow.com/a/62748969):

How can I sign a Safari Extension for just one computer?

I wrote a Safari Extension that I'd like to have permanently enabled on my computer. It works fine, but I have to click DevelopAllow Unsigned Extensions and enable it manually every time I open Safari for it to be available. I'm not really sure how the signing process works. Is there a way I can sign my extension for only this computer, without having to subscribe to an Apple Developer account?

First thing to do was to create a development account with Apple (the free version). Then click on [Project Name]Build Settings and ensure "Development Team" has your account selected (you'll have to add your account in XcodeSettingsAccounts if you haven't done so already).

ZowGd

Next, ensure Automatically manage signing is enabled for all "TARGETS" listed:

Pj2Gu

Then, go to ProductArchive and wait until the project compiles. It will bring up a window similar to this one:

awnGM

Next, hit Distribute AppCustomCopy App and choose where to export the app. After running the app, the extension will be available in Safari, even after restarting the browser.

That's it! Be aware that if you delete your app, it will also delete your extensions. Hope this helps someone!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment