CopilotForXcode icon indicating copy to clipboard operation
CopilotForXcode copied to clipboard

The operation couldn‘t be completed. (XPCShared.XPCCommunicationBridgeError error 0.)

Open shixiaoda opened this issue 1 year ago • 4 comments

Describe the bug Xcode 报错 The operation couldn‘t be completed. (XPCShared.XPCCommunicationBridgeError error 0.) 如图所示 插件App也报错,如图所示 我在另外一个设备上正常使用,可以排除账号问题

Versions

  • Copilot for Xcode: [0.29.0]
  • Xcode: [15.4]
  • macOS: [14.5]

Steps to reproduce

  1. Xcode -> Editor -> Github Copilot -> Enable Completions

Screenshots 截屏2025-01-07 09 00 54 截屏2025-01-06 16 25 08

Logs [2025-01-07T00:44:02.523Z] [info] [GitHubCopilot] [22091] check status response: Response(status: OK, user: Optional("shixiaoda")) [2025-01-07T00:44:02.524Z] [info] [GitHubCopilot] [22091] check status response: Response(status: OK, user: Optional("shixiaoda")) [2025-01-07T00:44:02.538Z] [error] [UI] [22091] Failed to reach communication bridge. Connection to communication bridge error: Couldn’t communicate with a helper application. [2025-01-07T00:46:01.124Z] [info] [GitHubCopilot] [22091] check status response: Response(status: OK, user: Optional("shixiaoda")) [2025-01-07T00:46:01.144Z] [info] [Client] [22091] Registering bridge launch agent [2025-01-07T00:46:01.157Z] [error] [UI] [22091] Failed to setup launch agent. The operation couldn’t be completed. Operation not permitted [2025-01-07T00:46:01.158Z] [error] [UI] [22091] Failed to reach communication bridge. Connection to communication bridge error: Couldn’t communicate with a helper application.

shixiaoda avatar Jan 07 '25 01:01 shixiaoda

Go to System preference -> General -> Login Items -> Allow in the Background -> Switch on Copilot for Xcode

Answer from https://github.com/github/CopilotForXcode/issues/40

Tangdixi avatar Mar 13 '25 06:03 Tangdixi

Go to System preference -> General -> Login Items -> Allow in the Background -> Switch on Copilot for Xcode

Answer from #40

Hi @Tangdixi and @shixiaoda,

Have you ever manually turned off the "Allow in background" permission for Copilot for Xcode? I'm investigating whether background items are being added correctly during installation.

Image

yiqing-zhao avatar Mar 13 '25 07:03 yiqing-zhao

Hi @Tangdixi and @shixiaoda,

I’m a software engineer working on developing and maintaining GitHub Copilot for Xcode. I’d like to confirm whether the app is correctly adding permissions to run in the background and clarify the related questions above.

I’d really appreciate your help—thanks in advance!

yiqing-zhao avatar Mar 18 '25 06:03 yiqing-zhao

Go to System preference -> General -> Login Items -> Allow in the Background -> Switch on Copilot for Xcode转到系统首选项->常规->登录项目->允许在后台->打开Xcode的Copilot Answer from #40答案#40

Hi @Tangdixi and @shixiaoda,  嗨,

Have you ever manually turned off the "Allow in background" permission for Copilot for Xcode? I'm investigating whether background items are being added correctly during installation.你有没有手动关闭过Xcode的Copilot的“后台允许”权限?我正在检查安装过程中是否正确添加了后台项目。

Image

Sorry, I can't remember if I manually turned off the background permissions.

shixiaoda avatar Mar 19 '25 00:03 shixiaoda