Hi, Xcode defines following build variables, we can not use them in Xcode 8 as the values are invalid octal number.
XCODE_VERSION_ACTUAL = 0800 XCODE_VERSION_MAJOR = 0800 XCODE_VERSION_MINOR = 0800 I am working on iOS project, it should be compilable in both Xcode 7 and Xcode 8. I am planning to add the conditional compilation like below preprocessor macro: XCODE_VERS=$(XCODE_VERSION_MAJOR) #if XCODE_VERS > 0700 @interface SampleTableCell : UITableViewCell<CAAnimationDelegate> #else @interface SampleTableCell : UITableViewCell #endif But this code throws the compilation error (Invalid digit '8' in octal constant) in Xcode 8, since 0800 is not a valid octal value. Is there any work around other than creating 2 different targets(separate target for Xcode 7 and Xcode 8) Regards Sasikumar JP _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com