I've been having a strange issue where the second time I run my Safari app extension, it won't show up in Safari.
- Open Xcode.
- New > Project.
- Under Other, select Safari Extension App, then click "Next".
- Enter whatever you want on this "product name" screen and then click "Next".
- Click "Create".
- Run the project by clicking the Play icon in the top-left of Xcode.
- It will open a small app with a single button at the bottom with the text: "Open in Safari Extensions Preferences".
- It probably won't show up. If it does, skip to 10.
- Go to Develop in the title menu of Safari, click "Allow Unsigned Extensions".
- Once shows up, check the box to enable it.
- Stop Xcode from running by clicking the stop icon in the top-left.
- Change a value in the Info.plist of the plugin such as changing the
from "Some" to "All".SFSafariWebsiteAccess.Level
- Click the Play icon in Xcode.
- Safari will tell you the extension permissions have changed. Acknowledge those changes and the extension will no longer show up.
The same thing happens if I change other values. If I leave the extension code and settings completely unchanged, no problems occur. But as soon as I change some value, it completely breaks even if I change those settings back.
This happens for me on two different Macs, both 10.13 and 10.14 with the latest Xcode.