Comments (11)
You mean a lower SDK than 5.0? We support iOS 6 and later
from flatuikit.
Hmm. Maybe I'm misunderstanding the error. I added FlatUikit via cocoapods to an IOS 8 swift application and it's failing to build with the error
#error "FlatUIKit uses features only available in iOS SDK 5.0 and later."
I was assuming this was happening because the macro __IPHONE_5_0 is not defined. Is there another way to ensure this macro is set for an ios 8.0 application?
from flatuikit.
Whats your SDK min on your project? You're building for iOS 8, but whats the min?
from flatuikit.
Minimum sdk is 8.0.
When using swift you can't build a minimum sdk lower than 7.0.
from flatuikit.
Would something like this work?
#if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_5_0
That way it's an inclusive check for all minimum SDK's 5.0 to latest?
from flatuikit.
Well I just tested it the above will not work. I was misinterpreting what was happening. For some reason the actual macro __IPHONE_5_0 is not defined. So Checking that the os version is higher than an undefined macro wont help anything.
It seems the underlying cause is that I am referencing FlatUIKit from a bridging header. These __IPHONE_5_0 style preprocessor macros aren't defined at the time the compiler is accessing the bridging header and is throwing the error. Removing FlatUIKit from the bridging header removes the error but does not allow swift interoperability.
from flatuikit.
Ah ok. What line of code are you putting in your bridging header? I will
try to test it out. I use it with swift all the time, but maybe it's a
swift 1.2 bug or something
On Wednesday, April 29, 2015, Sean Dunford [email protected] wrote:
Well I just tested it the above will not work. I was misinterpreting what
was happening. For some reason the actual macro __IPHONE_5_0 is not
defined. So Checking that the os version is higher than an undefined macro
wont help anything.It seems the underlying cause is that I am referencing FlatUIKit from a
bridging header. These __IPHONE_5_0 style preprocessor macros aren't
defined at the time the compiler is accessing the bridging header and is
throwing the error. Removing FlatUIKit from the bridging header removes the
error but does not allow swift interoperability.—
Reply to this email directly or view it on GitHub
#182 (comment).
from flatuikit.
Both
#import "FlatUIKit/FlatUIKit.h"
and
#import "FlatUIKit.h"
fail with the same error. I have Pods/** linked in search path and other pod files are working. Swift 1.2 could be the culprit. I imagine it could also be a cocoapods thing as well. I'm using 0.36.4 which is current stable I believe.
from flatuikit.
I'm taking a look at it now. It definitely seems to be a new issue. I'm going to see if I can figure out what people are doing about it, it used to be a pretty common header. I'm ok with dropping it if I cant find a solution, the only reason its there is to give people a nice verbose error.
from flatuikit.
Alright, you should be able to run pod update and be all set. Thanks, let me know if its still an issue.
from flatuikit.
Hey thanks man. I really appreciate how quickly you did that. If I find an alternative check that's available at the bridging header processing I'll submit a pull request.
from flatuikit.
Related Issues (20)
- Cocoapod: NSString+Icons missing in v1.5 HOT 2
- UIButton frame cut off HOT 4
- Swift Compatibility? HOT 14
- FUISwitch: -setOn:animated: does not propagate the animation flag HOT 1
- Deprecated warnings HOT 1
- NSInvalidArgumentException HOT 5
- No rounded corners when using UITableViewCell+FlatUI.h
- Get exception at `CTFontManagerRegisterFontsForURL` HOT 15
- FUIAlertView Issue - Swift HOT 1
- FUISegmentedControl has wrong height at run time
- Custom view in AlertView
- UIFont (FlatUI) display error charaster HOT 4
- Swift 2 Release HOT 1
- Numerous deprecations
- AlertView swift HOT 1
- Is it possible to use FUITextField for SearchBar? HOT 1
- Command Failed due to signal : Segmentation fault : 11 HOT 1
- I called [alert show],But nothing happened... why?
- FUIButton background is inconsistent on plus size iPhones
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flatuikit.