robb / Cartography

A declarative Auto Layout DSL for Swift :iphone::triangular_ruler:
Other
7.35k stars 525 forks source link

Xcode9: Cartography (3.0.0) fails to compile with Swift 4 for macOS #274

Open dhmspector opened 6 years ago

dhmspector commented 6 years ago

using Cartography (3.0.0), In Cartography/constraint.swift, line 19 and 23:

'isActive' is only available on OS X 10.10 or newer

screen shot 2017-11-06 at 12 29 56 pm

This happens using Cocoapods with a build target whose deployment target is 10.10

orta commented 6 years ago

Interesting, the podspec allows 10.9 - so really that should get an update

dhmspector commented 6 years ago

Is there an update on this issue?

corujautx commented 6 years ago

I think there is a deeper issue with this one. Is there a way on Mac OS X 10.9 of enabling constraints without appending them to a view? Because the support to layout guides implies that the API should enable constraints for those without needing the reference view.