I have been trying to get rid of many errors, and this one still persists:
if ([localeClass respondsToSelector:localeSelector]) {
IMP getLocaleIMP = [localeClass methodForSelector:localeSelector];
NSString *(*getLocale)(id, SEL) = (void *)getLocaleIMP;
NSString *fcmLocale = getLocale(localeClass, localeSelector);
if (fcmLocale != nil) {
return fcmLocale;
}
}
NSString *systemLanguage = [[NSLocale preferredLanguages] firstObject];
if (systemLanguage != nil) {
return systemLanguage;
}
int iOS;
int available;
if (available(iOS 10.0, *)) { (ISSUE expected ')')
return [NSLocale currentLocale].languageCode;
} else {
return nil;
}
}
No matter where I look, I cannot find where to put the ')'. This is forbidding me to run the app, which is quite inconvenient. On the side, it says:
Parse Issue
Expected ')'
! To match '('
Please help!