I am being flagged on upload of an app .ipa to the App Store that my app is using UIWebView, which is forcibly deprecated and no longer permitted in iOS apps.
Searching my code, I have found and removed all references but there ARE references in the frameworks I am using, notably DataAbstract.
A sample of such a prohibited class is provided.
//
// AboutViewController.m
// AppSales
//
// Created by Ole Zorn on 02.08.11.
// Copyright 2011 omz:software. All rights reserved.
//
#import "AboutViewController.h"
**@implementation** AboutViewController
**@synthesize** webView;
- (**id**)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
**self** = [**super** initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
**if** (**self**) {
**self**.title = NSLocalizedString(@"About", **nil**);
}
**return** **self** ;
}
- (**void**)loadView
{
**self**.webView = [[[UIWebView alloc] initWithFrame:CGRectZero] autorelease];
webView.scalesPageToFit = **YES**;
webView.dataDetectorTypes = UIDataDetectorTypeNone;
webView.delegate = **self**;
**self**.view = webView;
**self**.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:**self** action:**@selector**(done:)] autorelease];
}
The fix is for you to globally (all files, NOT JUST THIS ONE FILE) change all UIWebView to the replacement class name WKWebView. This notice was given to all apple developers in 2020, by the way, so you might want to hop on this pronto as its making it impossible for me to submit to the App Store with your current code.
Currently any submissions to apple’s store will not upload and show as builds, and emails are generated with this error.
Dear Developer,
We identified one or more issues with a recent delivery for your app, “xxxxx” 3.0 (8). Please correct the following issues, then upload again.
ITMS-90809: Deprecated API Usage - New apps that use UIWebView are no longer accepted. Instead, use WKWebView for improved security and reliability. Learn more (Apple Developer Documentation).
Best regards,
The App Store Team