Snapkit: carthage build failed

Created on 14 May 2019  路  2Comments  路  Source: SnapKit/SnapKit

Carthage

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

log info

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)

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 ios to avoid this compile error.

All 2 comments

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...

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mkoppanen picture mkoppanen  路  3Comments

Cookiezby picture Cookiezby  路  8Comments

romk1n picture romk1n  路  3Comments

snibble-manan picture snibble-manan  路  7Comments

seljabali picture seljabali  路  3Comments