问题描述
我已经使用React和Capacitor创建了一个Web应用程序,以针对iOS和Android进行构建。
Android可以正常运行,并且我可以毫无问题地提交到Play商店。但是,在将我的iOS版本提交给Apple时,我收到一封电子邮件,说明我的应用程序使用了不推荐使用的API:UIWebView,而应该使用WKWebView。
不过,在进一步调查中,我发现引用(here和here)的事实是,从1.2.0版开始,电容器已经删除了对UIWebView的引用。
我正在使用2.1.2的Capacitor core,cli和iOS版本。所以我对为何仍然收到此错误感到困惑。
最终,有谁知道如何进行调试?
祝一切顺利。
PS不确定是否有帮助,但这是我的package.json依赖项:
"dependencies": {
"@capacitor/android": "^2.1.2","@capacitor/cli": "^2.1.2","@capacitor/core": "^2.1.2","@capacitor/ios": "^2.1.2","@testing-library/jest-dom": "^4.2.4","@testing-library/react": "^9.3.2","@testing-library/user-event": "^7.1.2","capacitor-admob-advanced": "^1.4.1","capacitor-firebase-auth": "^0.3.1","firebase": "^7.14.1","firebase-admin": "^8.11.0","firebase-functions": "^3.6.1","html-react-parser": "^0.10.3","jetifier": "^1.6.5","moment": "^2.24.0","react": "^16.13.1","react-dom": "^16.13.1","react-flip-page": "^1.6.4","react-router-dom": "^5.1.2","react-scripts": "3.4.1","react-select": "^3.1.0","react-swipeable-routes": "^0.8.0","react-swipeable-views": "^0.13.9","react-swipeable-views-utils": "^0.13.9","react-textarea-autosize": "^7.1.2"
}
解决方法
它是电容器-firebase-auth,您必须更新到2.0.0或更高版本
https://github.com/baumblatt/capacitor-firebase-auth/issues/89