dyld[870]: Library not loaded: @rpath/libswiftCore.dylib

after upgrading to Ventura started to show this error, no one knows how to fix it? but if you delete Xcode, then this error does not exist, but if you download it back, it appears again

dyld[870]: Library not loaded: @rpath/libswiftCore.dylib

  Referenced from: <1BF3BE5E-DAD7-3109-B2CF-E336B6CC19D3> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.5/macosx/libswift_Concurrency.dylib

  Reason: tried: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-5.5/macosx/libswiftCore.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS@rpath/libswiftCore.dylib' (no such file), '/usr/local/lib/libswiftCore.dylib' (no such file), '/usr/lib/libswiftCore.dylib' (no such file, not in dyld cache)

Replies

I also encountered this problem recently, how did you solve it?