Unsupported Swift Version: “FBSnapshotTestCase iOS” contains source code developed with Swift 3.x.
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- swift
- Domain
- build-system, mobile
Research direction
Reproduce the failure with the Cartfile and carthage update --use-xcframeworks, then inspect the referenced xcodebuild log. Open Carthage/Checkouts/ComponentKit/Carthage/Checkouts/ios-snapshot-test-case/FBSnapshotTestCase.xcworkspace and examine the Swift-version compatibility. Done means ComponentKit builds successfully with Xcode 13 and the reported unsupported Swift version no longer blocks the Carthage build.
Written by the indexing model from the issue text.
Description
I'm on Xcode 13 and created a UIKit + Swift empty project. Then I added a Cartfile with:
github "facebook/ComponentKit"

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:

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?
- Dominant language
- Objective-C++
- Stars
- 5.7k
- Forks
- 574
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from facebook/componentkit
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
facebook/componentkit#979 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
facebook/componentkit#977 · 1 comment ·
-
Abandoned? Open
Difficulty 5/5 Over a week Newbie friendliness 10/100
facebook/componentkit#976 · 2 reactions ·
-
Difficulty 1/5 Under an hour Newbie friendliness 45/100
facebook/componentkit#975 ·
-
Yoga-internal.h:135:11: error: definition of implicit copy constructor for 'Values<9>' is deprecated Open
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
facebook/componentkit#974 · 3 reactions ·
All issues in facebook/componentkit
Similar issues
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
priority: p3
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
googleapis/librarian#7636 ·
-
package-update
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
oSoWoSo/vOid_Community_repOsitory#147 · 1 comment ·
-
Builders
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100