With the latest XCode (8.0 (8a218a)
release, my app now fails to build with the error message
"No known instance method for selector 'setEnabled'"
Here is the code, error flagged at the second last line. -
if (alertView.tag == PURCHASE_TAG) {
//NSLog(@"***Purchasing****");
/*
[BaseFunctions deleteKeychainValue:@"InstallDate"];
[BaseFunctions createKeychainValue:[BaseFunctions getCurrentYearMonthDate] forIdentifier:@"InstallDate"];
NSData *passwordData = [BaseFunctions searchKeychainCopyMatching:@"InstallDate"];
if (passwordData) {
installDate = [[NSString alloc] initWithData:passwordData
encoding:NSUTF8StringEncoding];
}
NSLog(@"***InstallDate = %@", installDate);
*/
[SVProgressHUD showWithStatus:@"Purchasing"];
[[[[UIApplication sharedApplication] windows] objectAtIndex:0] setEnabled:NO];
[[InAppPurchaseHandler sharedInAppPurchaseHandler] getProductInfoList];
}
I can't find any reference to the setEnabled
parameter and I am not sure how the line should be modified.