Skip to content

Instantly share code, notes, and snippets.

@insidegui
Created January 29, 2022 23:00
Show Gist options
  • Save insidegui/ca0f0ac4e53acd82281191cd7b953366 to your computer and use it in GitHub Desktop.
Save insidegui/ca0f0ac4e53acd82281191cd7b953366 to your computer and use it in GitHub Desktop.
Make your Mac app's extensions immediately available on macOS with a run script build phase
# Add this to a "Run Script" build phase in your app's main target, as the last step.
# It will use the pluginkit command-line tool to force the plugin system on macOS to add your extensions to its database, making them available.
# I made this specifically for widgets, but it should work for pretty much any extension type (appex bundle).
find $CODESIGNING_FOLDER_PATH -name '*.appex' -exec pluginkit -a {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment