Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAQ (please look for a solution here before asking) #65

Closed
intitni opened this issue Mar 23, 2023 · 6 comments
Closed

FAQ (please look for a solution here before asking) #65

intitni opened this issue Mar 23, 2023 · 6 comments

Comments

@intitni
Copy link
Owner

intitni commented Mar 23, 2023

Please check the following links first before submitting an issue.

@intitni intitni pinned this issue Mar 23, 2023
Repository owner locked as off-topic and limited conversation to collaborators Mar 23, 2023
@intitni intitni closed this as completed Mar 23, 2023
Repository owner unlocked this conversation Mar 24, 2023
@intitni intitni changed the title FAQ FAQ (Taking a break from it, may not reply to issue lately) Mar 25, 2023
@intitni intitni changed the title FAQ (Taking a break from it, may not reply to issue lately) FAQ (Taking a break from it, may not reply to issue recently) Mar 27, 2023
@intitni intitni changed the title FAQ (Taking a break from it, may not reply to issue recently) FAQ Mar 28, 2023
@intitni intitni changed the title FAQ FAQ (please look for a solution here before asking) Mar 30, 2023
@alexlee002
Copy link

Hey, Bro, Sorry to trouble you. Would you share me the implementation of how to launch the CopilotForXcodeExtensionService.app while executing the editor command?

@intitni
Copy link
Owner Author

intitni commented May 15, 2023

@alexlee002 The key is to use a launch agent to launch an XPC Service. For reference, you may examine this smaller project: https://github.com/intitni/XccurateFormatter. In its readme, there is a link available that explains how to configure the launch agent.

@alexlee002
Copy link

alexlee002 commented May 15, 2023

@intitni yes, I read that document last weekend, but I failed to do it in my demo... always something wrong

now I got this error :

Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named XXXAgent was invalidated: failed at lookup with error 159 - Sandbox restriction."

@alexlee002
Copy link

And another question, The XPCService commonly without UI, so , How the source editor extension launches the CopilotForXcodeExtensionService.app? by calling getService()? but I launch it in Terminal via launchctl, the xpc service is launched, but I couldn't find the UI in menubar ...

@intitni
Copy link
Owner Author

intitni commented May 15, 2023 via email

@alexlee002
Copy link

alexlee002 commented May 15, 2023

Nobody says an app with UI can't be an XPC Service.

I'm using Xcode 14.3, If I create an App Target, and Add XPCService configuration into Info.plist, But I Can create a build phase named 'Embed XPCService', and I can only add it to Embed Foundation Extensions, but it could not work

the error is the same:

Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named XXXAgent was invalidated: failed at lookup with error 159 - Sandbox restriction."

@intitni intitni mentioned this issue Jul 21, 2023
2 tasks
@intitni intitni unpinned this issue Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants