Github Copilot for Xcode.app closes when opened.
Describe the bug When I open the Github Copilot for Xcode.app it opens up for a few second and closes right away.
Versions
- Copilot for Xcode: [e.g. 0.35.0]
- Xcode: [e.g. 15.1]
- macOS: [e.g. 13.7.6]
Steps to reproduce
- Open the Github Copilot for Xcode.app
- See that it pops up and closes right away.
Logs
logs from ~/Library/Logs/GitHubCopilot/github-copilot-for-xcode.log
[2025-05-19T17:05:06.890Z] [info] [GitHubCopilot] [39060] check status response: Response(status: Active, user: Optional("YousefAbuJalboush"))
[2025-05-19T17:05:07.022Z] [info] [Client] [39060] Registering bridge launch agent
[2025-05-19T17:05:07.054Z] [info] [CommunicationBridge] [51045] Launching extension service app.
[2025-05-19T17:05:07.303Z] [info] [Service] [53776] Syncing Xcode theme: Default (Dark).xccolortheme
[2025-05-19T17:05:07.334Z] [info] [Service] [53776] XPC Service started.
[2025-05-19T17:05:07.335Z] [info] [CommunicationBridge] [51045] Accepted new connection.
[2025-05-19T17:05:07.965Z] [info] [GitHubCopilot] [39060] check status response: Response(status: Active, user: Optional("YousefAbuJalboush"))
[2025-05-19T17:05:08.266Z] [info] [Client] [39060] Registering bridge launch agent
[2025-05-19T17:05:09.360Z] [info] [GitHubCopilot] [53776] Setting env PATH: /usr/local/opt/[email protected]/bin:/Users/yousefjalboush/.rbenv/shims:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/yousefjalboush/.composer/vendor/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/yousefjalboush/.cargo/bin:/Users/yousefjalboush/Library/Android/sdk/emulator:/Users/yousefjalboush/Library/Android/sdk/platform-tools:/Users/yousefjalboush/Library/Android/sdk/cmdline-tools:/Users/yousefjalboush/Library/Android/sdk/emulator:/Users/yousefjalboush/Library/Android/sdk/platform-tools:/Users/yousefjalboush/Library/Android/sdk/cmdline-tools
[2025-05-19T17:05:09.797Z] [info] [GitHubCopilot] [53776] Starting language server in file:///Users/yousefjalboush/Library/Application%20Support/com.github.CopilotForXcode/GitHub%20Copilot/support/, ["HOME": "/Users/yousefjalboush", "GH_COPILOT_VERBOSE": "true", "PATH": "/usr/local/opt/[email protected]/bin:/Users/yousefjalboush/.rbenv/shims:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/yousefjalboush/.composer/vendor/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/yousefjalboush/.cargo/bin:/Users/yousefjalboush/Library/Android/sdk/emulator:/Users/yousefjalboush/Library/Android/sdk/platform-tools:/Users/yousefjalboush/Library/Android/sdk/cmdline-tools:/Users/yousefjalboush/Library/Android/sdk/emulator:/Users/yousefjalboush/Library/Android/sdk/platform-tools:/Users/yousefjalboush/Library/Android/sdk/cmdline-tools"]
[2025-05-19T17:05:09.798Z] [info] [GitHubCopilot] [53776] Running on Xcode string("15.1"), extension version string("0.35.0")
[2025-05-19T17:05:10.919Z] [info] [GitHubCopilot] [53776] Setting env PATH: /usr/local/opt/[email protected]/bin:/Users/yousefjalboush/.rbenv/shims:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/yousefjalboush/.composer/vendor/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/yousefjalboush/.cargo/bin:/Users/yousefjalboush/Library/Android/sdk/emulator:/Users/yousefjalboush/Library/Android/sdk/platform-tools:/Users/yousefjalboush/Library/Android/sdk/cmdline-tools:/Users/yousefjalboush/Library/Android/sdk/emulator:/Users/yousefjalboush/Library/Android/sdk/platform-tools:/Users/yousefjalboush/Library/Android/sdk/cmdline-tools
[2025-05-19T17:05:10.919Z] [info] [GitHubCopilot] [53776] Starting language server in file:///Users/yousefjalboush/Library/Application%20Support/com.github.CopilotForXcode/GitHub%20Copilot/support/, ["GH_COPILOT_VERBOSE": "true", "PATH": "/usr/local/opt/[email protected]/bin:/Users/yousefjalboush/.rbenv/shims:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/yousefjalboush/.composer/vendor/bin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Users/yousefjalboush/.cargo/bin:/Users/yousefjalboush/Library/Android/sdk/emulator:/Users/yousefjalboush/Library/Android/sdk/platform-tools:/Users/yousefjalboush/Library/Android/sdk/cmdline-tools:/Users/yousefjalboush/Library/Android/sdk/emulator:/Users/yousefjalboush/Library/Android/sdk/platform-tools:/Users/yousefjalboush/Library/Android/sdk/cmdline-tools", "HOME": "/Users/yousefjalboush"]
[2025-05-19T17:05:10.919Z] [info] [GitHubCopilot] [53776] Running on Xcode string("15.1"), extension version string("0.35.0")
[2025-05-19T17:05:11.716Z] [info] [GitHubCopilot] [53776] window/logMessage: {
"message" : "[lsp] GitHub Copilot Language Server 1.321.0 initialized",
"type" : 3
}
[2025-05-19T17:05:12.074Z] [info] [GitHubCopilot] [53776] window/logMessage: {
"message" : "[certificates] Read 64 certificates from Mac keychain",
"type" : 4
}
[2025-05-19T17:05:12.074Z] [info] [GitHubCopilot] [53776] window/logMessage: {
"message" : "[certificates] Removed 6 expired certificates",
"type" : 3
}
[2025-05-19T17:05:12.396Z] [info] [CommunicationBridge] [51045] Service app found: 53776 Optional("com.github.CopilotForXcode.ExtensionService")
[2025-05-19T17:05:12.396Z] [info] [CommunicationBridge] [51045] Service app is still valid
[2025-05-19T17:05:12.396Z] [info] [CommunicationBridge] [51045] Service app found: 53776 Optional("com.github.CopilotForXcode.ExtensionService")
[2025-05-19T17:05:12.397Z] [info] [CommunicationBridge] [51045] Service app is still valid
[2025-05-19T17:05:12.774Z] [info] [GitHubCopilot] [53776] window/logMessage: {
"type" : 3,
"message" : "[lsp] GitHub Copilot Language Server 1.321.0 initialized"
}
[2025-05-19T17:05:13.496Z] [info] [GitHubCopilot] [53776] window/logMessage: {
"message" : "[certificates] Read 64 certificates from Mac keychain",
"type" : 4
}
[2025-05-19T17:05:13.496Z] [info] [GitHubCopilot] [53776] window/logMessage: {
"message" : "[certificates] Removed 6 expired certificates",
"type" : 3
}
[2025-05-19T17:05:13.725Z] [info] [GitHubCopilot] [53776] didChangeStatus: {
"kind" : "Normal",
"busy" : false
}
[2025-05-19T17:05:13.726Z] [info] [GitHubCopilot] [53776] check status response: Response(status: Active, user: Optional("YousefAbuJalboush"))
[2025-05-19T17:05:13.727Z] [info] [GitHubCopilot] [53776] Failed to get MCP Tools status
[2025-05-19T17:05:13.729Z] [info] [GitHubCopilot] [53776] No models found, fetching models...
[2025-05-19T17:05:13.744Z] [info] [GitHubCopilot] [53776] MCPTools: GetAllToolsParams(servers: [])
[2025-05-19T17:05:13.750Z] [info] [GitHubCopilot] [53776] check status response: Response(status: Active, user: Optional("YousefAbuJalboush"))
[2025-05-19T17:05:13.750Z] [info] [GitHubCopilot] [53776] No models found, fetching models...
[2025-05-19T17:05:14.455Z] [info] [Client] [39060] XPCService interrupted
Same issue, even trying to reinstall it doesn't work. This is on my Macbook Air. On my Macbook Pro for work there isn't any issues though.
Hi @YousefAbuJalboush , @HammerAndShield. Sorry for this causing you trouble.
We'll give a test locally to figure out what happened. Do you mind to share
- which version do you used before upgrading to
0.35.0 - the entire log located at
~/Library/Logs/GitHubCopilot/github-copilot-for-xcode.log.
This is really helpful.
Here is one possible walkaround - To remove the settings and historical data of GitHub Copilot for Xcode:
- backup the data located at
~/.config/github-copilot/xcode, if needed. - remove the folder
~/.config/github-copilot/xcode - restart / reinstall the
GitHub Copilot for Xcodeapp.
It looks like the Background Permission not granted. Could you uninstall it (you can use the uninstall script https://github.com/github/CopilotForXcode/blob/main/Script/uninstall-app.sh for a full uninstallation) and reinstall the app?
@lijie-lee yes I did this. But this didn't help.
Hi @uo9qsuf
If the two solutions above does not work, there could be other issues there. Would you mind sharing the log file located at ~/Library/Logs/GitHubCopilot/github-copilot-for-xcode.log?
@lijie-lee Here is my log from the 0.36.0. The 0.34.0 worksfine. I think it crash by starting the server
[2025-06-12T11:38:14.135Z] [info] [Service] [8963] Extension Service is not updated, no need to quit. [2025-06-12T11:38:18.539Z] [info] [Service] [8963] Extension Service is not updated, no need to quit. [2025-06-12T11:38:18.624Z] [info] [Client] [81371] Registering bridge launch agent [2025-06-12T11:38:18.671Z] [info] [CommunicationBridge] [8962] Accepted new connection. [2025-06-12T11:38:18.675Z] [info] [CommunicationBridge] [8962] Service app found: 8963 Optional("com.github.CopilotForXcode.ExtensionService") [2025-06-12T11:38:18.675Z] [info] [CommunicationBridge] [8962] Service app is still valid [2025-06-12T11:38:18.675Z] [info] [CommunicationBridge] [8962] Service app found: 8963 Optional("com.github.CopilotForXcode.ExtensionService") [2025-06-12T11:38:18.675Z] [info] [CommunicationBridge] [8962] Service app is still valid [2025-06-12T11:38:28.348Z] [info] [Service] [8963] Extension Service is not updated, no need to quit. [2025-06-12T11:38:30.950Z] [info] [Service] [8963] Extension Service is not updated, no need to quit. [2025-06-12T11:38:31.933Z] [info] [Service] [8963] Extension Service is not updated, no need to quit.
I'm facing a similar issue. I can provide some additional context. The problem began after enabling agent mode in one of my projects. Now, Copilot crashes as soon as that project loads, though it works fine for other projects.
I reinstall the Copilot after running the uninstall script, but it didn't help.
Logs
[2025-06-24T05:01:38.882Z] [info] [GitHubCopilot] [24054] Running on Xcode string("16.3"), extension version string("0.37.0")
[2025-06-24T05:01:38.882Z] [info] [WorkspacePool] [24054] File type xcworkspace unsupported.
[2025-06-24T05:01:39.456Z] [info] [GitHubCopilot] [24054] window/logMessage: {
"message" : "[lsp] GitHub Copilot Language Server 1.335.0 initialized",
"type" : 3
}
[2025-06-24T05:01:39.539Z] [info] [GitHubCopilot] [24054] window/logMessage: {
"message" : "[lsp] GitHub Copilot Language Server 1.335.0 initialized",
"type" : 3
}
[2025-06-24T05:01:39.586Z] [info] [GitHubCopilot] [24054] window/logMessage: {
"type" : 3,
"message" : "[certificates] Removed 31 expired certificates"
}
[2025-06-24T05:01:39.667Z] [info] [GitHubCopilot] [24054] window/logMessage: {
"message" : "[certificates] Removed 31 expired certificates",
"type" : 3
}
[2025-06-24T05:01:40.635Z] [info] [GitHubCopilot] [24054] didChangeStatus: {
"kind" : "Normal",
"busy" : false
}
[2025-06-24T05:01:40.636Z] [info] [GitHubCopilot] [24054] check status response: Response(status: Active, user: Optional("vineetchoudhary"))
[2025-06-24T05:01:40.637Z] [info] [GitHubCopilot] [24054] No models found, fetching models...
[2025-06-24T05:01:40.659Z] [info] [GitHubCopilot] [24054] check status response: Response(status: Active, user: Optional("vineetchoudhary"))
[2025-06-24T05:01:40.659Z] [info] [GitHubCopilot] [24054] No models found, fetching models...
[2025-06-24T05:01:40.659Z] [info] [GitHubCopilot] [24054] Failed to get MCP Tools status
[2025-06-24T05:01:40.685Z] [info] [GitHubCopilot] [24054] MCPTools: GetAllToolsParams(servers: [])
[2025-06-24T05:01:40.694Z] [info] [GitHubCopilot] [24054] didChangeStatus: {
"kind" : "Normal",
"busy" : false
}
[2025-06-24T05:01:40.694Z] [info] [GitHubCopilot] [24054] No models found, fetching models...
[2025-06-24T05:01:40.694Z] [info] [GitHubCopilot] [24054] check status response: Response(status: Active, user: Optional("vineetchoudhary"))
[2025-06-24T05:01:40.714Z] [info] [GitHubCopilot] [24054] Failed to get MCP Tools status
[2025-06-24T05:01:40.739Z] [info] [GitHubCopilot] [24054] MCPTools: GetAllToolsParams(servers: [])