Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create extension for Safari without release the app?

I now want to write extension for Safari. But xCode offers me first make the app, and then add the safari extension.

OK, I created an empty application, started writing my extension, but I have a question. Can I release an extension without reference to the application? I do not understand the process.

I want to just create a safari extension, without reference to a particular application, because my product is a Safari extension, not a application.

like image 514
GenRiH Avatar asked Nov 15 '17 13:11

GenRiH


2 Answers

I know it's late but somebody else might stumble upon this topic and I think the following information can be useful.

It seems that according to Apple's documentation extensions that are created using Safari Extension Builder will not longer be supported: https://developer.apple.com/library/archive/documentation/Tools/Conceptual/SafariExtensionGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40009977-CH1-SW1

Developer-signed Safari extensions are not supported in Safari 12. Safari extensions distributed in the Safari Extension Gallery are deprecated, and Safari 12 is the last release to support them. Safari by default will turn off Safari extensions using canLoad. Instead, use Content Blocker extensions. New submissions to the Safari Extensions Gallery will be accepted until the end of 2018.

So the only way seems to be to

Use Safari app extensions to add features to the Safari browser.

https://developer.apple.com/documentation/safariservices/safari_app_extensions: this looks like the only way to develop an extension as of today (2018), alas.

like image 190
Kirlat Avatar answered Oct 07 '22 13:10

Kirlat


There are 2 types of Safari extensions: ones that bundled with a Mac app (Safari App Extensions) and standalone extensions. I belive standalone extensions can be created using Safari Extension Builder (avaliable in Develop menu in Safari), without Xcode. You can learn more about Safari extensions here.

like image 43
Igor R. Avatar answered Oct 07 '22 14:10

Igor R.