ios - Code builds for device, not for simulator... Expected identifier or "("? -
i have chunk of code in xcode 6 placed right below import statements:
#if __iphone_os_version_max_allowed >= 80000 if ([self.locationmanager respondstoselector:@selector(requestwheninuseauthorization)]) { [self.locationmanager requestwheninuseauthorization]; } #else #endif when select physical device run on, projects builds fine. when select simulator run on, expected identifier error:
expected identifier or "("
on line:
if ([self.locationmanager respondstoselector:@selector(requestwheninuseauthorization)]) { i have right number of parenthesis builds, runs, , completes task fine on physical device. if there explanation on website occurrence, have not been able find it.
thank you.
ios xcode ios7 ios8 xcode6
No comments:
Post a Comment