componentkit icon indicating copy to clipboard operation
componentkit copied to clipboard

Unsupported Swift Version: “FBSnapshotTestCase iOS” contains source code developed with Swift 3.x.

Open x65han opened this issue 4 years ago • 0 comments

I'm on Xcode 13 and created a UIKit + Swift empty project. Then I added a Cartfile with:

github "facebook/ComponentKit"

image

Then I ran:

carthage update --use-xcframeworks

I got the following error:

*** Fetching ComponentKit
*** Checking out ComponentKit at "0.31"
*** xcodebuild output can be found in /var/folders/cz/ylqnlz3d4bx1342by3m0dqt00000gn/T/carthage-xcodebuild.RFd4m3.log
*** Building scheme "ComponentKitAppleTV" in ComponentKit.xcodeproj
Build Failed
        Task failed with exit code 65:
        /usr/bin/xcrun xcodebuild -project /Users/x65han/Desktop/My\ First\ App/Carthage/Checkouts/ComponentKit/ComponentKit.xcodeproj -scheme ComponentKitAppleTV -configuration Release -derivedDataPath /Users/x65han/Library/Caches/org.carthage.CarthageKit/DerivedData/13.0_13A233/ComponentKit/0.31 -sdk appletvos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive VALIDATE_WORKSPACE=NO -archivePath /var/folders/cz/ylqnlz3d4bx1342by3m0dqt00000gn/T/ComponentKit SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/x65han/Desktop/My First App/Carthage/Checkouts/ComponentKit)

This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/cz/ylqnlz3d4bx1342by3m0dqt00000gn/T/carthage-xcodebuild.RFd4m3.log

Now I open Carthage/Checkouts/ComponentKit/Carthage/Checkouts/ios-snapshot-test-case/FBSnapshotTestCase.xcworkspace. I get the following error:

image

Looks like FBSnapshotTestCase is using Swift 3, which is no longer supported on latest version of XCode. I don't know where to download XCode 10 to upgrade FBSnapshotTestCase to Swift 4. Is there any known workarounds?

x65han avatar Dec 03 '21 04:12 x65han