【发布时间】:2020-02-14 23:10:16
【问题描述】:
我尝试将应用上传到 App Store,但出现了问题。我收到一封电子邮件,告诉我不要使用UIWebView,但被拒绝了。
App Store Connect 尊敬的开发者,
我们发现您的应用最近交付的一个或多个问题, “游戏主” 1.0.0 (1)。您的交付成功,但您可以 希望在您下次交付时更正以下问题:
ITMS-90809:不推荐使用的 API - Apple 将停止接受 提交使用 UIWebView API 的应用程序。看 https://developer.apple.com/documentation/uikit/uiwebview 了解更多 信息。
纠正问题后,您可以使用 Xcode 或 Application 加载程序将新的二进制文件上传到 App Store Connect。
最好的问候,
App Store 团队
但我不使用UIWebView,我只使用WKWebView。所以我做了一个完整的搜索,看看图书馆是否在使用它。但是什么也没搜到。有什么问题?
shift + command + F的搜索结果
Web 视图使用类
import Foundation
import UIKit
import WebKit
import Toaster
import StoreKit
import MobileCoreServices
import Alamofire
class kWebViewController: UIViewController, WKUIDelegate, WKScriptMessageHandler, UIImagePickerControllerDelegate, UINavigationControllerDelegate, NASWallDelegate, SKProductsRequestDelegate {
@IBOutlet weak var indicator: UIImageView!
@IBOutlet var kWebView: WKWebView!
podfile
# Uncomment the next line to define a global platform for your project
platform :ios, '12.0'
target 'gamemain' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for DeleteMe
pod 'SwiftSVG', '~> 2.0'
pod 'Toaster'
pod 'BigInt', '~> 4.0'
pod 'CryptoSwift'
pod 'RealmSwift'
pod 'web3.swift.pod', '~> 2.2.0'
pod 'Firebase'
pod 'Firebase/Messaging'
pod 'Firebase/Auth'
pod 'Firebase/Core'
pod 'Alamofire', '~> 4.8.2'
end
我相信你会解决这个问题的。
【问题讨论】:
-
尝试
pod update一次,然后尝试上传。也许框架更新了。 -
@NiravKotecha 这不是福特问题对我造成的问题。 Object-C 文件夹中的 naswall.a 文件有问题。
标签: ios swift iphone cocoapods app-store