Skip to content

Latest commit

 

History

History
181 lines (126 loc) · 9.46 KB

TROUBLESHOOTING.md

File metadata and controls

181 lines (126 loc) · 9.46 KB

Troubleshooting for Copilot for Xcode

If you are having trouble with Copilot for Xcode follow these steps to resolve common issues:

  1. Check for updates and restart Xcode. Ensure that Copilot for Xcode has the latest release by clicking Check for Updates in the settings or under the status menu. After updating, restart Xcode.

  2. Ensure that all required permissions are granted. GitHub Copilot for Xcode app requires these permissions to function properly:

    Please note that GitHub Copilot for Xcode may not work properly if any necessary permissions are missing.

  3. Need more help? If these steps don't resolve the issue, please open an issue. Make sure to include logs and any other relevant information.

Extension Permission

GitHub Copilot for Xcode is an Xcode Source Editor extension and requires the extension to be enabled. In the Copilot for Xcode settings, clicking Extension Permission will open the System Settings to the Extensions page where GitHub Copilot can be enabled under Xcode Source Editor.

Or you can navigate to the permission manually depending on your OS version:

macOS Location
26 System Settings > General > Login Items & Extensions > Extensions > By Category > Xcode Source Editor
15 System Settings > General > Login Items & Extensions > Extensions > Xcode Source Editor
13 & 14 System Settings > Privacy & Security > Extensions > Xcode Source Editor
12 System Preferences > Extensions

Accessibility Permission

GitHub Copilot for Xcode requires the accessibility permission to receive real-time updates from the active Xcode editor. The XcodeKit API enabled by the Xcode Source Editor extension permission only provides information when manually triggered by the user. In order to generate suggestions as you type, the accessibility permission is used to read the Xcode editor content in real-time.

The accessibility permission is also used to accept suggestions when tab is pressed.

The accessibility permission is not used to read or write to any applications besides Xcode. You can audit the usage in this repository: search for CGEvent and AX*.

macOS Location
27.3+ System Settings > Privacy & Security > System & App Protection Override
13 – 27.2 System Settings > Privacy & Security > Accessibility

macOS 27.3 and later

On macOS 27.3+, non-assistive apps must be added manually under System & App Protection Override:

  1. Click Open Permission Settings in the Copilot chat window (or Accessibility Permission in Settings) to open System Settings > Privacy & Security > System & App Protection Override and automatically reveal the extension app in Finder. Click the + button at the bottom of the list (enter your Mac password if prompted).

Click the + button in System & App Protection Override

  1. Locate GitHub Copilot for Xcode Extension in Finder and drag it into the file selection dialog above.
    • Automatic: Clicking Open Permission Settings in Copilot automatically opens Finder with GitHub Copilot for Xcode Extension highlighted.
    • Manual: Open Finder > Applications, right-click GitHub Copilot for Xcode.app, choose Show Package Contents, and navigate to Contents/Applications/GitHub Copilot for Xcode Extension (do not select the outer GitHub Copilot for Xcode.app).

Drag GitHub Copilot for Xcode Extension from Finder into the file picker

  1. Verify GitHub Copilot for Xcode Extension is selected in the dialog, then click Add.

Confirm GitHub Copilot for Xcode Extension is selected and click Add

  1. When prompted to choose apps to control, click Override System Protections (required so Tab to accept completions can intercept keyboard events).

Click Override System Protections

  1. Confirm all listed permission items, then click Allow System & App Protection Override.

Allow all items and click Allow System & App Protection Override

macOS 13 – 27.2

Enable GitHub Copilot for Xcode Extension in System Settings > Privacy & Security > Accessibility and turn on the toggle.

Background Permission

GitHub Copilot for Xcode requires background permission to connect with the host app. This permission ensures proper communication between the components of GitHub Copilot for Xcode, which is essential for its functionality in Xcode.

Background Permission

This permission is typically granted automatically when you first launch GitHub Copilot for Xcode. However, if you encounter connection issues, alerts, or errors as follows:

Alert of Background Permission Required Error connecting to the communication bridge

Please ensure that this permission is enabled. You can manually navigate to the background permission setting based on your macOS version:

macOS Location
26 System Settings > General > Login Items & Extensions > App Background Activity
15 System Settings > General > Login Items & Extensions > Allow in the Background
13 & 14 System Settings > General > Login Items > Allow in the Background

Ensure that "GitHub Copilot for Xcode" is enabled in the list of allowed background items. Without this permission, the extension may not be able to properly communicate with the host app, which can result in inconsistent behavior or reduced functionality.

Files & Folders Permission

GitHub Copilot for Xcode needs permission to read your project’s files so it can:

  • Use actual file contents as contextual grounding when you ask questions in Ask and Agent mode (instead of generic language-only answers)
  • Safely apply or preview multi-file edits in Agent modes (e.g. refactors, adding tests, updating related types)
  • Improve precision by leveraging nearby code, patterns, and naming conventions

Files & Folders Permission

When first prompted macOS shows a dialog asking to allow access to folders. Click "Allow". If you clicked "Don't Allow" or nothing appears:

macOS Location
13 & 14 & 15 & 26 System Settings > Privacy & Security > Files and Folders
12 System Preferences > Security & Privacy > Privacy > Files and Folders

In the list, expand GitHub Copilot for Xcode and enable the toggles for any relevant locations (e.g. “Documents” if your repositories live there). If your code is elsewhere (e.g. ~/Developer), macOS may instead prompt dynamically the next time Copilot tries to read those paths—accept when prompted.

Screen & System Audio Recording Permission (Optional)

This permission is only needed if you choose to use Copilot Vision (screen-based context capture).

Copilot does NOT require screen recording for standard inline suggestions, chat, or agent operations.

Screen & System Audio Recording Permission

This permission is typically granted automatically when you first use Copilot Vision and try to capture screen in GitHub Copilot for Xcode. You can also manually navigate to the background permission setting based on your macOS version:

macOS Location
14 & 15 & 26 System Settings > Privacy & Security > Screen & System Audio Recording
13 System Settings > Privacy & Security > Screen Recording
12 System Preferences > Security & Privacy > Privacy > Screen Recording

Check GitHub Copilot for Xcode and restart the app.

Logs

Logs can be found in ~/Library/Logs/GitHubCopilot/. The most recent log file is:

~/Library/Logs/GitHubCopilot/github-copilot-for-xcode.log

To enable verbose logging, open the GitHub Copilot for Xcode settings and enable Verbose Logging in the Advanced tab. After enabling verbose logging, restart Copilot for Xcode for the change to take effect.