I am using Appirater ( https://github.com/arashpayan/appirater ) to enable application ratings in my xcode project. Everything works fine when using the "iOS Simulator", but when I use the target of the iOS device to archive my project, I get 2 build errors:
Semantic problem: implicit declaration of function 'SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO' is invalid in C99
Semantic problem: implicit declaration of function 'SYSTEM_VERSION_LESS_THAN' is invalid in C99
The corresponding lines of code are in the Appirater.m file:
if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0") && SYSTEM_VERSION_LESS_THAN(@"7.1")) {
reviewURL = [templateReviewURLiOS7 stringByReplacingOccurrencesOfString:@"APP_ID" withString:[NSString stringWithFormat:@"%@", _appId]];
}
I found a set of macros that are very similar to them in How to check the iOS version?
Any help would be appreciated.
source
share