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

Issues building the latest version #302

Open
SirWellington opened this issue Oct 5, 2018 · 3 comments
Open

Issues building the latest version #302

SirWellington opened this issue Oct 5, 2018 · 3 comments

Comments

@SirWellington
Copy link

Trying to build this using Carthage on XCode 9.4.1.

Getting the following errors:

public typealias LayoutAttribute = NSLayoutConstraint.Attribute
                                   ~~~~~~~~~~~~~~~~~~ ^
/Users/wellington/Documents/Code/Censio/iOS/censio-ios-app/Code/Carthage/Checkouts/Cartography/Cartography/Context.swift:12:54: error: 'Relation' is not a member type of 'NSLayoutConstraint'
public typealias LayoutRelation = NSLayoutConstraint.Relation
                                  ~~~~~~~~~~~~~~~~~~ ^
/Users/wellington/Documents/Code/Censio/iOS/censio-ios-app/Code/Carthage/Checkouts/Cartography/Cartography/LayoutProxy.swift:18:64: error: 'Attribute' is not a member type of 'NSLayoutConstraint'
    internal func dimension(with attribute: NSLayoutConstraint.Attribute) -> Dimension {
                                            ~~~~~~~~~~~~~~~~~~ ^
/Users/wellington/Documents/Code/Censio/iOS/censio-ios-app/Code/Carthage/Checkouts/Cartography/Cartography/LayoutProxy.swift:22:59: error: 'Attribute' is not a member type of 'NSLayoutConstraint'
    internal func edge(with attribute: NSLayoutConstraint.Attribute) -> Edge {
                                       ~~~~~~~~~~~~~~~~~~ ^

Did you mean to use NSLayoutAttribute.

Help!

@Monkey-D-Mark
Copy link

I got this errors as well. It's ok in Xcode 10, appears in Xcode 10.1 beta2 anyone can help?

@uhavemysword
Copy link

Same issue,Help!

@timdonnelly
Copy link
Contributor

For anyone still having trouble with this: NSLayoutAttribute was renamed to NSLayoutConstraint.Attribute in Swift 4.2.

I opened a PR to add swift_version = 4.2 to the podspec, which will remove the requirement that Cartography is integrated into a target that also uses 4.2 (for those using Cocoapods, at least).

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

4 participants