Ask questionsxcode installation fails on using archive utility
xcversion install command on machine without GUI service running, the Archive Utility fails with the following error:
_RegisterApplication(), FAILED TO establish the default connection to the WindowServer, _CGSDefaultConnection() is NULL. 2019-05-02 11:26:54.842 Archive Utility[3338:14365] +[NSXPCSharedListener endpointForReply:withListenerName:]: an error occurred while attempting to obtain endpoint for listener 'ClientCallsAuxiliary': Connection interrupted
Alternative way to extract
.xip is to use
xip -x command.
What I ended up doing is using
xcversion install <version> --no-install and then use
xip -x Xcode_<version>.xip and that worked.
May be xcode-install should use
xip -x instead of
archive utility ? if it makes sense I can make a PR should be pretty simple
Answer questions salmanasiddiqui
created PR with the suggested change