github "SnapKit/SnapKit" ~> 5.0.0
rg.carthage.CarthageKit/DerivedData/10.2.1_10E1001/SnapKit/5.0.0 -sdk appletvos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/vx/z3wkm__95vsg2w_j3k8bp3tm0000gn/T/SnapKit SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/jewson/Desktop/Libs 鏂囦欢/Demo/Test/Carthage/Checkouts/SnapKit)
This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/vx/z3wkm__95vsg2w_j3k8bp3tm0000gn/T/carthage-xcodebuild.EjqEmy.log
SnapKit.build/Objects-normal/arm64/ConstraintDescription.bc
/Users/jewson/Desktop/Libs 鏂囦欢/Demo/Test/Carthage/Checkouts/SnapKit/Source/LayoutConstraint.swift:49:37: error: 'firstAnchor' is only available on tvOS application extension 10.0 or newer
areLayoutAnchorsEqual = lhs.firstAnchor === rhs.firstAnchor &&
^
/Users/jewson/Desktop/Libs 鏂囦欢/Demo/Test/Carthage/Checkouts/SnapKit/Source/LayoutConstraint.swift:49:37: note: add 'if #available' version check
areLayoutAnchorsEqual = lhs.firstAnchor === rhs.firstAnchor &&
^
/Users/jewson/Desktop/Libs 鏂囦欢/Demo/Test/Carthage/Checkouts/SnapKit/Source/LayoutConstraint.swift:46:15: note: add @available attribute to enclosing operator function
internal func ==(lhs: LayoutConstraint, rhs: LayoutConstraint) -> Bool {
^
/Users/jewson/Desktop/Libs 鏂囦欢/Demo/Test/Carthage/Checkouts/SnapKit/Source/LayoutConstraint.swift:49:57: error: 'firstAnchor' is only available on tvOS application extension 10.0 or newer
areLayoutAnchorsEqual = lhs.firstAnchor === rhs.firstAnchor &&
^
/Users/jewson/Desktop/Libs 鏂囦欢/Demo/Test/Carthage/Checkouts/SnapKit/Source/LayoutConstraint.swift:49:57: note: add 'if #available' version check
areLayoutAnchorsEqual = lhs.firstAnchor === rhs.firstAnchor &&
^
/Users/jewson/Desktop/Libs 鏂囦欢/Demo/Test/Carthage/Checkouts/SnapKit/Source/LayoutConstraint.swift:46:15: note: add @available attribute to enclosing operator function
internal func ==(lhs: LayoutConstraint, rhs: LayoutConstraint) -> Bool {
^
/Users/jewson/Desktop/Libs 鏂囦欢/Demo/Test/Carthage/Checkouts/SnapKit/Source/LayoutConstraint.swift:50:17: error: 'secondAnchor' is only available on tvOS application extension 10.0 or newer
lhs.secondAnchor === rhs.secondAnchor
^
/Users/jewson/Desktop/Libs 鏂囦欢/Demo/Test/Carthage/Checkouts/SnapKit/Source/LayoutConstraint.swift:50:17: note: add 'if #available' version check
lhs.secondAnchor === rhs.secondAnchor
^
/Users/jewson/Desktop/Libs 鏂囦欢/Demo/Test/Carthage/Checkouts/SnapKit/Source/LayoutConstraint.swift:46:15: note: add @available attribute to enclosing operator function
internal func ==(lhs: LayoutConstraint, rhs: LayoutConstraint) -> Bool {
^
/Users/jewson/Desktop/Libs 鏂囦欢/Demo/Test/Carthage/Checkouts/SnapKit/Source/LayoutConstraint.swift:50:38: error: 'secondAnchor' is only available on tvOS application extension 10.0 or newer
lhs.secondAnchor === rhs.secondAnchor
^
/Users/jewson/Desktop/Libs 鏂囦欢/Demo/Test/Carthage/Checkouts/SnapKit/Source/LayoutConstraint.swift:50:38: note: add 'if #available' version check
lhs.secondAnchor === rhs.secondAnchor
^
/Users/jewson/Desktop/Libs 鏂囦欢/Demo/Test/Carthage/Checkouts/SnapKit/Source/LayoutConstraint.swift:46:15: note: add @available attribute to enclosing operator function
internal func ==(lhs: LayoutConstraint, rhs: LayoutConstraint) -> Bool {
^
** ARCHIVE FAILED **
The following build commands failed:
CompileSwift normal arm64
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(2 failures)
I met the same problem.From the logs I found it's a problem caused by tvOS. If you use it on other platform , for example iOS , just typing in carthage update --platform ios to avoid this compile error.
This doesn't work if you're building a tvOS app however...
Most helpful comment
I met the same problem.From the logs I found it's a problem caused by tvOS. If you use it on other platform , for example iOS , just typing in
carthage update --platform iosto avoid this compile error.