Convert Chrome/Firefox Extension to Safari

Apple Recommended

Replies

This is not working. I have Safari 14 installed on Catalina end even set it as default browser. Still getting:

Same here.
I'm running:

Code Block console
$ xcrun safari-web-extension-converter /path/to/extension-dir
safari-web-extension-converter requires at least Safari 14.0 to run.
Unable to parse manifest.json at file:///path/to/extension-dir


The manifest.json can be seen at: https://github.com/asciidoctor/asciidoctor-browser-extension/blob/master/app/manifest.json

Anyone has a solution or a way to troubleshoot this issue?

I found that Unable to parse manifest.json at file is thrown if manifest_version is not 2
Latest Chrome extensions use manifest version 3 and looks like Xcode can't handle it.
  • this was the reason for me as well, thanks for the insight

Add a Comment
extension-project % xcrun safari-web-extension-converter ./src/extension
Unable to parse manifest.json at file:///Users/me/tinkering/extension-project/src/extension/

In my case, the extension had several comments in the manifest.json file (eg: // The following will be removed for Chrome during build.). Removing all comments from the JSON resolved the issue I was seeing.