Coder Social home page Coder Social logo

Comments (11)

jamieomatthews avatar jamieomatthews commented on June 8, 2024

You mean a lower SDK than 5.0? We support iOS 6 and later

from flatuikit.

SeanDunford avatar SeanDunford commented on June 8, 2024

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.

jamieomatthews avatar jamieomatthews commented on June 8, 2024

Whats your SDK min on your project? You're building for iOS 8, but whats the min?

from flatuikit.

SeanDunford avatar SeanDunford commented on June 8, 2024

Minimum sdk is 8.0.

When using swift you can't build a minimum sdk lower than 7.0.

from flatuikit.

SeanDunford avatar SeanDunford commented on June 8, 2024

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.

SeanDunford avatar SeanDunford commented on June 8, 2024

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.

jamieomatthews avatar jamieomatthews commented on June 8, 2024

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.

SeanDunford avatar SeanDunford commented on June 8, 2024

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.

jamieomatthews avatar jamieomatthews commented on June 8, 2024

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.

jamieomatthews avatar jamieomatthews commented on June 8, 2024

Alright, you should be able to run pod update and be all set. Thanks, let me know if its still an issue.

from flatuikit.

SeanDunford avatar SeanDunford commented on June 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.