Post

Replies

Boosts

Views

Activity

Safari won't show non-app store extensions
Dear Apple Developers, I tried to open a Safari Extension I coded in Xcode. I checked "Allow Unsigned Extensions" in the Safari Develop menu. When I try to run the App it shoots out this: 'Optional(Error Domain=SFErrorDomain Code=1 "(null)")' what should indicate that either my bundle id is wrong or that it's correct but not mine. I checked and it's correct. I'm pretty new to this all so I don't really have a plan on how to fix this myself. I also tried different signing methods from none to personal team and from sign to run locally to development - that doesn't seem to have an impact. What I'm noticing though, is, that every extension I downloaded from the App Store works and shows up very well. So what is going on? Thanks in advance :) PS: Also, I had this error a while ago and it resolved itself after several restarts. But that's pretty annoying.
1
0
591
Jan ’21
Safari Web Extension errors "SFErrorDomain Code=1"
Hello dear Apple Community, I'm pretty new to this, so probably this is a simple fix... I just created a Safari Web Extension from the "official" template in Xcode (File > New > Project > Safari Extension App). I ran it an it popped a window open which has a button that says something like "Quit and open Safari Preferences". I press it and nothing happens. Weirdly though, a week ago, I tried pretty much the same -> worked perfectly. But now it doesn't. So I made the button press event look like this:  @IBAction func openSafariExtensionPreferences(_ sender: AnyObject?) { SFSafariApplication.showPreferencesForExtension(withIdentifier: extensionBundleIdentifier) { error in             guard error == nil else {                 print(error.debugDescription)                 return             }             DispatchQueue.main.async {                 NSApplication.shared.terminate(nil)             }         }     } And it printed me out this error:  (Error Domain=SFErrorDomain Code=1 "(null)") I checked "Allow Unsigned Extensions" and even tried it with the "Sea Creator" Example code found here - https://developer.apple.com/documentation/safariservices/safari_web_extensions/developing_a_safari_web_extension?language=objc and some other Safari Web Extensions that I wrote a week ago. They all seem to throw the same error. I guess it could be a corrupted file or something - about that: yup, I already restarted my Mac. Is there a way to "reinstall" Safari without restoring my entire machine? What am I missing? Afaik the error means that my extension wasn't found or that I'm not the owner, but how could that be... because why would Xcode give me an invalid template and why would it have worked then a week ago? I'm just confused. Thanks in advance! :)
2
0
2.2k
Jan ’21
Safari Web Extension template throws "SFErrorDomain Code=1"
Hello dear Apple Community, I'm pretty new to this, so probably this is a simple fix... I just created a Safari Web Extension from the "official" template in Xcode (File > New > Project > Safari Extension App). I ran it an it popped a window open which has a button that says something like "Quit and open Safari Preferences". I press it and nothing happens. Weirdly though, a week ago, I tried pretty much the same -> worked perfectly. But now it doesn't. So I made the button press event look like this: @IBAction func openSafariExtensionPreferences(_ sender: AnyObject?) {  SFSafariApplication.showPreferencesForExtension(withIdentifier: extensionBundleIdentifier) { error in             guard error == nil else {                 print(error.debugDescription)                 return             }             DispatchQueue.main.async {                 NSApplication.shared.terminate(nil)             }         }     } And it printed me out this error: Optional(Error Domain=SFErrorDomain Code=1 "(null)") What am I missing? Afaik the error means that my extension wasn't found or that I'm not the owner, but how could that be... because why would Xcode give me an invalid template? Thanks in advance! :)
2
0
895
Jan ’21