XcodesOrg / xcodes

The best command-line tool to install and switch between multiple versions of Xcode.
MIT License
3.59k stars 119 forks source link

XcodesKit/Environment.swift:80: Precondition failed: Aria must be called on the main queue #313

Closed marcusziade closed 10 months ago

marcusziade commented 10 months ago

Terminal output:

$ xcodes install 15.0 Beta 7

Downloading with aria2 (/opt/homebrew/bin/aria2c)

XcodesKit/Environment.swift:80: Precondition failed: Aria must be called on the main queue
Trace/BPT trap: 5
rasmusroessum commented 10 months ago

This is because there is a problem with aria2c.

Write this first:

export LC_MESSAGES="C"

Issue in aria2c

marcusziade commented 10 months ago

Nice, that worked, thanks @rasmusroessum

MaxBook ~ $ export LC_MESSAGES="C"
MaxBook ~ $ xcodes install 14.3.1

Downloading with aria2 (/opt/homebrew/bin/aria2c)
(1/6) Downloading Xcode 14.3.1+14E300c: 7 %
Lakr233 commented 9 months ago

It is still crashing...

➜  ~ xcodes runtimes install "tvOS 17.0"

Downloading with aria2 (/opt/homebrew/bin/aria2c)

XcodesKit/Environment.swift:80: Precondition failed: Aria must be called on the main queue
[1]    71745 trace trap  xcodes runtimes install "tvOS 17.0"
➜  ~ export LC_MESSAGES="C"
➜  ~ xcodes runtimes install "tvOS 17.0"

Downloading with aria2 (/opt/homebrew/bin/aria2c)

XcodesKit/Environment.swift:80: Precondition failed: Aria must be called on the main queue
[1]    72199 trace trap  xcodes runtimes install "tvOS 17.0"
➜  ~ 
protonjohn commented 2 months ago

I'm still getting this crash, even after trying to export the environment variable LC_MESSAGES="C". My choice of platform doesn't seem to have any effect either, it always crashes.