The Module compiled by Swift 5.6.1 cannot be imported by the Swift 5.7 compiler

As you can see, now we have upgraded xcode to version 14 or above [now Apple officially requires that uploading in the appstore must use xcode14 or above for packaging

what a pity!
library is managed by carthage
We had to update xcode to 14 a few days ago. It is found that other files referencing R2Shared in the project report errors, indicating that the Module compiled by Swift 5.6.1 cannot be imported by the Swift 5.7 compiler [R2Shared is currently packaged as xcframework by you]

Seems like you need to rebuild your Carthage dependencies. I suggest you delete the local Carthage directory and run carthage bootstrap again.

I had done that a few days ago
go to catalog
and run. " carthage update --platform iOS --use-xcframeworks --toolchain com.apple.dt.toolchain.Swift_5_7"
my network is fine but the it stucked in the progress in one of "Fetching XXX" I can't carthage update successfully
Is my command wrong?