carlj / CJAMacros

Macro collection for daily usage
MIT License
97 stars 23 forks source link

iOS8 Fixes Break iOS6/7 Identification #5

Closed williamsjj closed 10 years ago

williamsjj commented 10 years ago

Version number changes cause the break. Reverting to the previous numbers corrects the issue:

 @@ -128,7 +128,7 @@ _lambda \

 //If the symbol for iOS 6.0 isnt defined, define it.
 #ifndef NSFoundationVersionNumber_iOS_6_0
-#define NSFoundationVersionNumber_iOS_6_0 992.00
+#define NSFoundationVersionNumber_iOS_6_0 993.00
 #endif

 #ifdef NSFoundationVersionNumber_iOS_6_0
@@ -137,7 +137,7 @@ _lambda \

 //If the symbol for iOS 6.1 isnt defined, define it.
 #ifndef NSFoundationVersionNumber_iOS_6_1
-#define NSFoundationVersionNumber_iOS_6_1 992.00
+#define NSFoundationVersionNumber_iOS_6_1 993.00
 #endif

 #ifdef NSFoundationVersionNumber_iOS_6_1
@@ -146,7 +146,7 @@ _lambda \

 //If the symbol for iOS 7 isnt defined, define it.
 #ifndef NSFoundationVersionNumber_iOS_7_0
-#define NSFoundationVersionNumber_iOS_7_0 1047.20
+#define NSFoundationVersionNumber_iOS_7_0 1047.00
 #endif
carlj commented 10 years ago

@williamsjj thx for the hint.

_------------------------------------------------------------------------------------------_ _JUST FORGET WHAT I WROTE HERE! DID A REFIX IN db98de28b5d3cbd6222affc8f2ba40e8fe82fd26 **------------------------------------------------------------------------------------------**_

unfortunately apple itself changed the defines values for 6.0, 6.1 and 7.0 in the iOS 8 header files. In the reason of that i added a iOS 8 compile check for the defines.

#ifndef NSFoundationVersionNumber_iOS_6_0
    #if __IPHONE_OS_VERSION_MIN_REQUIRED >= __IPHONE_8_0
        #define NSFoundationVersionNumber_iOS_6_0 992.00
    #else
        #define NSFoundationVersionNumber_iOS_6_0 993.00
    #endif
#endif
carlj commented 10 years ago

@williamsjj FYI: https://devforums.apple.com/message/904954#904954

this is actually a bug and was fixed in the iOS 8 Beta 3