XcodesOrg / xcodes

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

can't resolve symbol _swift_task_create #247

Open henti opened 1 year ago

henti commented 1 year ago

Installed with brew install xcodes

Homebrew 3.6.11
Homebrew/homebrew-core (git revision d1177035fe0; last commit 2022-11-21)

When trying to run xcodes I get

dyld: lazy symbol binding failed: can't resolve symbol _swift_task_create in /usr/local/bin/xcodes because dependent dylib @rpath/libswift_Concurrency.dylib could not be loaded
dyld: can't resolve symbol _swift_task_create in /usr/local/bin/xcodes because dependent dylib @rpath/libswift_Concurrency.dylib could not be loaded
Abort trap: 6

Location of libswift_Concurrency.dylib on machine is /Library/Developer/CommandLineTools/usr/lib//swift-5.5/macosx/libswift_Concurrency.dylib

dmytro-kasianchuk-doordash commented 1 year ago

You could try running "brew doctor" and following the prompts if any. In some cases it can help

henti commented 1 year ago

Thank you, brew doctor output is

Warning: Your Xcode (12.4) is outdated.
Please update to Xcode 13.2.1 (or delete it).
Xcode can be updated from the App Store.

however the reason I need xcodes is to install newer Xcode versions while keeping the existing version to support older build targets.

I'll attempt to upgrade and then install the older version. Thank you.

msbit commented 1 year ago

I've a very similar issue:

dyld: lazy symbol binding failed: can't resolve symbol _swift_task_create in /Users/tom/Downloads/xcodes/./xcodes/1.3.0/bin/xcodes because dependent dylib #17 could not be loaded
dyld: can't resolve symbol _swift_task_create in /Users/tom/Downloads/xcodes/./xcodes/1.3.0/bin/xcodes because dependent dylib #17 could not be loaded
Abort trap: 6

When downloaded from:

https://github.com/RobotsAndPencils/xcodes/releases/download/1.3.0/xcodes-1.3.0.mojave.bottle.tar.gz

Running on:

ProductName:    Mac OS X
ProductVersion: 10.14.6
BuildVersion:   18G9323

I'm guessing that Mojave (with its older Swift runtime) isn't supported despite the release having mojave in the filename?

borrrden commented 1 year ago

That seems like exactly the case. It doesn't even work on macOS 11.5.2 with Xcode 12 installed. This presents a catch 22 situation whereby we want to upgrade Xcode using this tool, but we can't because Xcode is not upgraded.

bitsnaps commented 4 months ago

Similar issue on Big sur 11.7:

Warning: Your Xcode (11.3.1) at /Applications/Xcode.app is too outdated.
Please update to Xcode 13.2.1 (or delete it).
Xcode can be updated from the App Store.