Post

Replies

Boosts

Views

Activity

After converting a Web Extension using safari-web-extension-converter, running extension fails with SFErrorDomain code 1
I have a web extension https://github.com/david-shortman/clickster In the directory for that extension, I ran david@Davids-Mac-mini clickster % xcrun safari-web-extension-converter . Xcode Project Location: /Volumes/Samsung_T5/dev/GitHub/clickster App Name: Clickster App Bundle Identifier: com.yourCompany.Clickster Language: Swift Is this correct? [yes]: no Xcode Project Location [/Volumes/Samsung_T5/dev/GitHub/clickster]: App Name [Clickster]: App Bundle Identifier [com.yourCompany.Clickster]: com.shortman.Clickster Swift Objective-C Language [1]: 1 Then, Xcode automatically opens that project. I ran the app with the default config for "My Mac". The extension immediately encountered this error in the default guard in ViewController here error error Error? domain: "SFErrorDomain" - code: 1 0x0000600002706ca0 error was thrown on line 3 guard let state = state, error == nil else {                 // Insert code to inform the user that something went wrong.                 return // <- breaks here             }
2
0
1.8k
Apr ’21