gpt4 book ai didi

ios - ITMS-90809 : Deprecated API Usage — Apple will stop accepting submissions of apps that use UIWebView APIs When upload myApp

转载 作者:行者123 更新时间:2023-12-03 18:29:48 24 4
gpt4 key购买 nike

我尝试将应用程序上传到 App Store,但出现问题。我收到一封电子邮件,告诉我不要使用 UIWebView,但被拒绝了。

App Store Connect Dear Developer,

We identified one or more issues with a recent delivery for your app, "gamemain" 1.0.0 (1). Your delivery was successful, but you may wish to correct the following issues in your next delivery:

ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of apps that use UIWebView APIs . See https://developer.apple.com/documentation/uikit/uiwebview for more information.

After you’ve corrected the issues, you can use Xcode or Application Loader to upload a new binary to App Store Connect.

Best regards,

The App Store Team

但我不使用UIWebView,我只使用WKWebView。所以我进行了全面的搜索,看看图书馆是否正在使用它。但什么也没搜查到。有什么问题吗?

shift + command + F 的搜索结果

enter image description here

Web View 使用类

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

get

enter image description here

我相信你会解决这个问题。

最佳答案

Apple 最近推出了新的应用程序提交警告 ITMS - 90809,表明我们正式弃用 UIWebView。如果您的应用程序代码或任何框架仍然包含 UIWebView 的引用,您肯定会收到警告。

WKWebViewUIWebView 的替代品,我相信苹果很快就会开始拒绝仍然使用 UIWebView 的应用程序。所以要做好准备。

通过执行以下终端命令,您可以轻松了解哪个库仍在使用 UIWebView 引用(不要错过 .(点))。

$ grep -r "UIWebView" .

框架匹配的输出

./<ANY>.framework/Headers/ANY.h:#define ANYUseUIWebView ANY_NAME_PASTE(ANY_PREFIX_NAME, ANYUseUIWebView)

 库匹配的输出

Binary file ./<FRAMEWORK-NAME>.framework/<LIB-FILE>.a matches

如果您看到一些匹配项,则意味着是时候升级这些库了。

希望对您有帮助。干杯

编辑

来自苹果的更新

The App Store will no longer accept new apps using UIWebView as of 
April 2020 and app updates using UIWebView as of December 2020.

引用:https://developer.apple.com/news/?id=12232019b

关于ios - ITMS-90809 : Deprecated API Usage — Apple will stop accepting submissions of apps that use UIWebView APIs When upload myApp,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58442629/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com