Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
x65han opened this issue Dec 3, 2021 · 0 comments

Comments

@x65han
Copy link

x65han commented Dec 3, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant