Skip to content

Commit 047815c

Browse files
authored
Merge pull request intitni#72 from ast3150/patch-1
Add guidance for manual LaunchAgent setup
2 parents 7616a24 + 0ba53c0 commit 047815c

1 file changed

Lines changed: 24 additions & 2 deletions

File tree

README.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,30 @@ fi
173173

174174
> A: If you have just updated the app from an old version, make sure you have restarted the XPC Service.
175175
>
176-
> Please make sure you have set up Launch Agents, try running `launchctl list | grep com.intii` from the terminal, and see if `com.intii.CopilotForXcode.ExtensionService` exists. If not, check `~/Library/LaunchAgents` to see if `com.intii.CopilotForXcode.ExtensionService.plist` exists. If they don't, and the button in the app fails to create them, please try to do it by hand.
177-
>
176+
> Please make sure you have set up Launch Agents, try running `launchctl list | grep com.intii` from the terminal, and see if `com.intii.CopilotForXcode.ExtensionService` exists. If not, check `~/Library/LaunchAgents` to see if `com.intii.CopilotForXcode.ExtensionService.plist` exists. If they don't, and the button in the app fails to create them, please try to add the file manually:
177+
178+
> This is an example of the .plist file. Please note that the application path may need to be adjusted based on your installation location.
179+
180+
```
181+
<?xml version="1.0" encoding="UTF-8"?>
182+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
183+
<plist version="1.0">
184+
<dict>
185+
<key>Label</key>
186+
<string>com.intii.CopilotForXcode.ExtensionService</string>
187+
<key>Program</key>
188+
<string>/Applications/Copilot for Xcode.app/Contents/Applications/CopilotForXcodeExtensionService.app/Contents/MacOS/CopilotForXcodeExtensionService</string>
189+
<key>MachServices</key>
190+
<dict>
191+
<key>com.intii.CopilotForXcode.ExtensionService</key>
192+
<true/>
193+
</dict>
194+
</dict>
195+
</plist>
196+
```
197+
198+
> After creating the file, set the proper permissions: `chmod 755 ~/Library/LaunchAgents/com.intii.CopilotForXcode.ExtensionService`.
199+
178200
> If you are installing multiple versions of the extension on your machine, it's also possible that Xcode is using the older version of the extension.
179201
180202
**Q: The extension complains that it has no access to the Accessibility API**

0 commit comments

Comments
 (0)