Created
January 29, 2022 23:00
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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