From bc6b0dd2b0b8b612c1dac809b37d9bbaaf6cbb0e Mon Sep 17 00:00:00 2001 From: Sander Bruens Date: Wed, 24 Jan 2024 12:18:01 -0500 Subject: [PATCH] chore(cordova/apple): update README to add how to run `lsregister` garbage collection --- src/cordova/apple/README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/cordova/apple/README.md b/src/cordova/apple/README.md index 02ef98bda9..dee5592a7a 100644 --- a/src/cordova/apple/README.md +++ b/src/cordova/apple/README.md @@ -176,6 +176,13 @@ If your extenstion is still not loading, you can try to force register it: 1. The VpnExtension will be at `Build/Products/Debug/Outline.app/Contents/PlugIns/VpnExtension.appex` 1. Run `run pluginkit -a `, e.g. `pluginkit -a /Users/$USER/Library/Developer/Xcode/DerivedData/macos-bnidlwvulcdazjfxleynwzkychqi/Build/Products/Debug/Outline.app/Contents/PlugIns/VpnExtension.appex` +You may need to run the `lsregister` garbage collector to make sure old entries +in the Launch Services database are cleared: + +``` +/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -gc +``` + #### Delete the existing VPN configuration You may want to also delete the VPN configurations: @@ -184,7 +191,6 @@ You may want to also delete the VPN configurations: 1. Press the Info button for the Outline service 1. Press *Remove Configuration…* and confirm - #### Restart If all fails, restart your device. That usually takes care of the issue.