我正在为iOS和Android构建混合应用程序。该应用程序主要使用Nuxt JS(一种基于Javascript的Vue JS框架)和Vuetify JS构建。我目前正在使用Cordova 8.0.0来构建和编译我的应用程序,并且最近已将我们的第一个应用程序提交给应用程序商店进行审查,我收到了折旧警告,并且担心此问题将不会得到解决。科尔多瓦?
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.
我使用的Cordova插件很少,想知道是否已解决此问题,或者与下面列出的基于Cordova的插件之一有关。
从Cordova项目提交到应用商店时,不应出现折旧警告。
警告出现。
NPM版本:6.10.2 节点版本:10.13.0 Xcode:10.3
我正在为iOS 12.4进行构建,部署目标为10.0
我正在使用以下Cordova插件及其版本:
"dependencies": {
"cordova-android": "^7.1.4",
"cordova-ios": "^4.5.5",
"cordova-plugin-actionsheet": "^2.3.3",
"cordova-plugin-app-event": "^1.2.1",
"cordova-plugin-background-mode": "^0.7.3",
"cordova-plugin-badge": "^0.8.8",
"cordova-plugin-console": "^1.1.0",
"cordova-plugin-device": "^2.0.3",
"cordova-plugin-local-notification": "git+https://github.com/katzer/cordova-plugin-local-notifications.git",
"cordova-plugin-native-keyboard": "^2.0.3",
"cordova-plugin-powermanagement-orig": "git+https://github.com/boltex/cordova-plugin-powermanagement.git",
"cordova-plugin-whitelist": "^1.3.3"
}
我正在使用iOS和Android进行构建,正在使用Nuxt JS 2.9.2
用于构建应用程序的命令如下:
"scripts": {
"dev": "nuxt",
"build": "nuxt build",
"start": "nuxt start",
"generate": "NODE_ENV=production nuxt generate",
"cordova-ios": "NODE_ENV=production npm run build-spa && npm run replace-relative-paths && npm run copy-cordova && npm run run-ios;",
"cordova-android": "NODE_ENV=production npm run build-spa && npm run replace-relative-paths && npm run copy-cordova && npm run run-android;",
"cordova-browser": "NODE_ENV=production npm run build-spa && npm run replace-relative-paths && npm run copy-cordova && npm run run-browser;",
"build-spa": "nuxt build --spa",
"replace-relative-paths": "replace '/nuxtfiles/' 'nuxtfiles/' dist --recursive && replace '/assets/' 'nuxtfiles/' dist --recursive && replace '(href|src|\"href\"|\"src\")=\"/' '$1=\"../' dist --recursive && replace '(href|src|\"href\"|\"src\"):\"/' '$1:\"../' dist --recursive",
"copy-cordova": "cp -R dist/* cordova/www/",
"clear-cordova": "rm -R cordova/www/*",
"run-ios": "cd cordova && cordova run ios --buildFlag='-UseModernBuildSystem=0' --target='iPhone-X, 12.2'",
"run-android": "cd cordova && cordova run android",
"run-browser": "cd cordova && cordova run browser"
}
答案 0 :(得分:0)
我认为您必须在iOS的Cordova应用中使用WKWebView(我不确定,但UIWebView已过时)