intitni / CopilotForXcode

The missing GitHub Copilot, Codeium and ChatGPT Xcode Source Editor Extension
https://copilotforxcode.intii.com
MIT License
7.62k stars 372 forks source link

[Help Wanted]: accessibility permission loading All the time #495

Closed aimei111 closed 5 months ago

aimei111 commented 5 months ago

Before Reporting

Describe your issue

I want help! accessibility permission loading All the time, please help 123

aimei111 commented 5 months ago

11 22

intitni commented 5 months ago

Did you try the FAQ?

Q: The extension says it can't connect to the extension service or the extension service version loading never ends.

A: Please make sure the app is in the Applications folder. 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.

Please try the following solutions one by one.

  1. Using the setup launch agent button to set up the launch agent and restart the app.

  2. Check if the toggle in System Settings > General > Login Items > Allow in the Background > Copilot for Xcode is off. Turn it on if it is.

  3. Reinstall the launch agent with the following step:

    1. Delete Copilot for Xcode.app, make sure it's also not in the trash bin.
    2. Restart Mac, so that it will clean the list up.
    3. Install the app again in the Applications folder.
  4. If the button in the app doesn't work, please try setting it up manually:

    1. Create com.intii.CopilotForXcode.ExtensionService.plist and put it inside ~/Library/LaunchAgents.

      This is an example of the .plist file. Please note that the application path may need to be adjusted based on your installation location.

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
      <plist version="1.0">
      <dict>
          <key>Label</key>
          <string>com.intii.CopilotForXcode.ExtensionService</string>
          <key>Program</key>
          <string>/Applications/Copilot for Xcode.app/Contents/Applications/CopilotForXcodeExtensionService.app/Contents/MacOS/CopilotForXcodeExtensionService</string>
          <key>MachServices</key>
          <dict>
              <key>com.intii.CopilotForXcode.ExtensionService</key>
              <true/>
          </dict>
          <key>AssociatedBundleIdentifiers</key>
          <array>
              <string>com.intii.CopilotForXcode</string>
              <string>com.intii.CopilotForXcode.ExtensionService</string>
          </array>
      </dict>
      </plist>
    2. After creating the file, run these from the terminal:
      chmod 755 ~/Library/LaunchAgents/com.intii.CopilotForXcode.ExtensionService.plist
      launchctl load ~/Library/LaunchAgents/com.intii.CopilotForXcode.ExtensionService.plist
aimei111 commented 5 months ago

Thank you very much. It's ready. Here's why: I drag the downloaded Copilot for Xcode.app from the download folder into the app😂