muthusabarinathan / core-plot

Automatically exported from code.google.com/p/core-plot
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

No longer builds in Xcode 4.6 #603

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When building Coreplot 1.4 on Xcode 4.6 against the iOS 6.1 SDK, the compiler 
gives an error in iPhoneOnly/CPTTextStylePlatformSpecific.m:200.

[NSString sizeWithAttributes:] was added in iOS 7, and although the selector is 
tested to exist, the compiler assumes the unknown selector returns an id but is 
then assigned to a CGSize.

This code should be wrapped in an #if to test if it's being built against an 
SDK prior to iOS 7, eg:

#if __IPHONE_OS_VERSION_MAX_ALLOWED < 70000
        textSize = [self sizeWithAttributes:style.attributes];
#endif

Cheers,
Nick

Original issue reported on code.google.com by nicked on 26 Oct 2013 at 10:53

GoogleCodeExporter commented 8 years ago
Oops, I mean
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000

Original comment by nicked on 26 Oct 2013 at 10:59

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 6c2d93ba06fe.

Original comment by eskr...@mac.com on 26 Oct 2013 at 11:46