我的工作在4月开始的应用程序和拒绝的应用程序商店。
我昨天接管了这个项目,我删除了ios平台,并安装了最新版本(6.0)。
https:/cordova.apache.organnouncements20200601cordova-ios-release-6.0.0.html。
然而,虽然6.0版本应该停止使用UiWebView,但当我试图将应用程序发送到苹果商店连接时,我得到了这个错误信息。
"ITMS-90809:废弃的 API 使用 - 不再接受使用 UIWebView 的新应用程序。取而代之的是使用WKWebView,以提高安全性和可靠性。了解更多信息 (https:/developer.apple.comdocumentationuikituiwebview。)."
我的包.json
{
"name": "X",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "https://ionicframework.com/",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/common": "~8.1.2",
"@angular/compiler": "~8.1.2",
"@angular/core": "~8.1.2",
"@angular/forms": "~8.1.2",
"@angular/platform-browser": "~8.1.2",
"@angular/platform-browser-dynamic": "~8.1.2",
"@angular/router": "~8.1.2",
"@ionic-native/app-rate": "^5.26.0",
"@ionic-native/badge": "^5.26.0",
"@ionic-native/base64": "^5.26.0",
"@ionic-native/calendar": "^5.26.0",
"@ionic-native/call-number": "^5.26.0",
"@ionic-native/camera": "^5.26.0",
"@ionic-native/clipboard": "^5.26.0",
"@ionic-native/core": "^5.26.0",
"@ionic-native/crop": "^5.26.0",
"@ionic-native/fcm": "^5.26.0",
"@ionic-native/file": "^5.26.0",
"@ionic-native/in-app-browser": "^5.26.0",
"@ionic-native/launch-navigator": "^5.26.0",
"@ionic-native/native-storage": "^5.26.0",
"@ionic-native/network": "^5.26.0",
"@ionic-native/photo-viewer": "^5.26.0",
"@ionic-native/social-sharing": "^5.26.0",
"@ionic-native/splash-screen": "^5.26.0",
"@ionic-native/status-bar": "^5.26.0",
"@ionic-native/stripe": "^5.26.0",
"@ionic/angular": "^4.11.10",
"aios": "0.2.3",
"call-number": "1.0.1",
"com-badrit-base64": "0.2.0",
"com-sarriaroman-photoviewer": "1.2.5",
"cordova-android": "7.1.4",
"cordova-clipboard": "1.3.0",
"cordova-ios": "^6.0.0",
"cordova-plugin-actionsheet": "2.3.3",
"cordova-plugin-apprate": "1.5.0",
"cordova-plugin-badge": "0.8.8",
"cordova-plugin-calendar": "5.1.5",
"cordova-plugin-camera": "4.1.0",
"cordova-plugin-crop": "0.4.0",
"cordova-plugin-device": "^2.0.3",
"cordova-plugin-dialogs": "2.0.2",
"cordova-plugin-facebook4": "1.7.4",
"cordova-plugin-fcm-with-dependecy-updated": "6.4.3",
"cordova-plugin-file": "6.0.2",
"cordova-plugin-inappbrowser": "git+https://github.com/apache/cordova-plugin-inappbrowser.git",
"cordova-plugin-ionic-keyboard": "^2.2.0",
"cordova-plugin-ionic-webview": "^5.0.0",
"cordova-plugin-nativestorage": "2.3.2",
"cordova-plugin-network-information": "2.0.2",
"cordova-plugin-splashscreen": "^5.0.4",
"cordova-plugin-statusbar": "^2.4.3",
"cordova-plugin-whitelist": "^1.3.4",
"cordova-plugin-x-socialsharing": "5.6.8",
"core-js": "^2.6.11",
"es6-promise-plugin": "4.2.2",
"firebase": "^6.6.2",
"ngx-qrcode2": "0.0.9",
"ngx-qrcode3": "^0.3.0",
"ngx-stripe": "^7.4.4",
"rxjs": "^6.5.5",
"tslib": "^1.13.0",
"uk.co.workingedge.phonegap.plugin.launchnavigator": "5.0.4",
"zone.js": "~0.9.1"
},
"devDependencies": {
"@angular-devkit/architect": "~0.801.2",
"@angular-devkit/build-angular": "~0.801.2",
"@angular-devkit/core": "~8.1.2",
"@angular-devkit/schematics": "~8.1.2",
"@angular/cli": "~8.1.2",
"@angular/compiler": "~8.1.2",
"@angular/compiler-cli": "~8.1.2",
"@angular/language-service": "~8.1.2",
"@ionic/angular-toolkit": "~2.0.0",
"@types/jasmine": "~3.3.8",
"@types/jasminewd2": "^2.0.8",
"@types/node": "~8.9.4",
"codelyzer": "^5.2.2",
"jasmine-core": "~3.4.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~4.1.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~2.0.1",
"karma-jasmine-html-reporter": "^1.5.4",
"protractor": "^5.4.4",
"ts-node": "~7.0.0",
"tslint": "~5.15.0",
"typescript": "~3.4.3"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"cordova-plugin-whitelist": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-ionic-keyboard": {},
"cordova-plugin-camera": {
"ANDROID_SUPPORT_V4_VERSION": "27.+"
},
"uk.co.workingedge.phonegap.plugin.launchnavigator": {
"GOOGLE_API_KEY_FOR_ANDROID": "X",
"OKHTTP_VERSION": "3.12.0",
"LOCATION_USAGE_DESCRIPTION": "This app requires access to your location for navigation purposes"
},
"cordova-plugin-badge": {},
"cordova-plugin-nativestorage": {},
"cordova-clipboard": {},
"com-badrit-base64": {},
"cordova-plugin-file": {},
"cordova-plugin-calendar": {
"CALENDAR_USAGE_DESCRIPTION": " ",
"CONTACTS_USAGE_DESCRIPTION": " "
},
"cordova-plugin-facebook4": {
"APP_ID": "X",
"APP_NAME": "X"
},
"cordova-plugin-network-information": {},
"cordova-plugin-inappbrowser": {},
"cordova-plugin-apprate": {},
"cordova-plugin-x-socialsharing": {
"ANDROID_SUPPORT_V4_VERSION": "24.1.1+",
"PHOTO_LIBRARY_ADD_USAGE_DESCRIPTION": "This app requires photo library access to function properly.",
"PHOTO_LIBRARY_USAGE_DESCRIPTION": "This app requires photo library access to function properly."
},
"mx.ferreyra.callnumber": {},
"cordova-plugin-crop": {},
"com-sarriaroman-photoviewer": {}
},
"platforms": [
"android",
"ios"
]
}
}
如果有人有一个想法.先谢谢你.诚挚的.
最近,我已经针对这个问题修复了我的应用。由于你已经把所有的包更新到最新版本,我建议你直接跳到下面的第四步。
对于其他人来说,以下是修复这个问题的步骤。
1) 确保你的 cordova-plugin-ionic-webview
已更新到最新版本 5.0.0
. 你需要运行这两个命令来实现。
ionic cordova plugin remove cordova-plugin-ionic-webview
ionic cordova plugin add cordova-plugin-ionic-webview@latest
2) 确保你的 cordova-ios
已更新到最新版本 6.0.0
. 运行此命令进行更新。
npm install cordova-ios@latest --save
3) 检查你的 package.json
看看这两个版本是否已经更新 cordova-ios
和 cordova-plugin-ionic-webview
.
4) 确保您添加 WKWebViewOnly
偏向 config.xml
文件。
<platform name="ios">
<preference name="WKWebViewOnly" value="true" />
...
</platform>
5)这是最重要的一步。确保你删除了 ios
平台,并再次添加它。运行这些命令来删除和添加 ios
的平台。
ionic cordova platform rm ios
ionic cordova platform add ios
现在,当你建立ios应用并发布到应用商店时,你可以看到这个问题将被修复。
请运行这个命令,检查哪个插件包含了对UIWebView的引用。
grep -r "UIWebView" 。
然后,你可以尝试在编译前删除所有这些引用。