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

CGFloat is an undeclared type #70

Closed
tcurdt opened this issue Feb 5, 2015 · 3 comments · Fixed by #72
Closed

CGFloat is an undeclared type #70

tcurdt opened this issue Feb 5, 2015 · 3 comments · Fixed by #72

Comments

@tcurdt
Copy link

tcurdt commented Feb 5, 2015

I am not sure why but according to the Swift compiler CGFloat is an undeclared type - and I had to add import UIKit to that file to make it compile.

https://github.com/robb/Cartography/blob/master/Cartography/Extensions.swift#L37

I am bit flabbergasted but it seems like it's not declared in Foundation. http://stackoverflow.com/questions/24700245/cgfloat-not-defined-in-foundation-framework

@robb
Copy link
Owner

robb commented Feb 5, 2015

Weird

Did you just build Cartography in Xcode or through Carthage or Cocoapods? What version of Xcode were you using?

@tcurdt
Copy link
Author

tcurdt commented Feb 5, 2015

CocoaPods (0.34.4) with Xcode 6.1 (6A1046a).
Downloading Xcode 6.1.1 as we speak.

@robb
Copy link
Owner

robb commented Feb 5, 2015

Yeah, I can replicate it in Xcode 6.1 (6A1052c), I'll push a fix but probably wouldn't bother to tag 0.2.1 if it's already fixed in Xcode 6.1.1

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

Successfully merging a pull request may close this issue.

2 participants