Safari Content Blocker - cannot set bundle name in Safari Extensions list

Hello,

I can't figure out how to set the name of a Content Blocker in the Safari extensions list. So far, the Content Blocker name in this list is the Contaning application name. I tried to set the bundle name in Info.plist and tried to locate Info.plist, without success...

Since I also bundle a Safari ("chrome") extension, I have two extensions in the list, and it would be fine to display a specific name for each to make it clear for the user.

Answered by Systems Engineer in 809303022

You can change the name of your Content Blocker Extension using the General pane of the Project Editor in Xcode.

To open the Project Editor, choose your project from the Xcode Project Navigator sidebar. Then select your extension target and select the General pane. You will see a section labeled Identity with a Display Name field that you can edit.

You can change the name of your Content Blocker Extension using the General pane of the Project Editor in Xcode.

To open the Project Editor, choose your project from the Xcode Project Navigator sidebar. Then select your extension target and select the General pane. You will see a section labeled Identity with a Display Name field that you can edit.

Then, should I file a bug? Because that does not seem to work... or at least it does not, when I launch the app from XCode (16). I doubt it would change if installed from the Store.

What is really strange is that I have another Content Blocker, in another Containing App, and the name of this Content Blocker is the Containing App name + "- Content Blocker". But... I can't find this string in any file in the project (I did a grep on all files and checked in XCode also of course). If I switch to french language, this name is changed to "*** - Bloqueur de contenu", where "Bloqueur de contenu" exactly means "Content Blocker". This string is NOT in the InfoPlist.strings file, and the Bundle Display Name, in any case, is not in this strings file.

Any idea?

More info... If I change the Containing App's name, then this is that name that will appear in the Safari's extensions list in Safari App Settings.

Safari Content Blocker - cannot set bundle name in Safari Extensions list
 
 
Q