简体   繁体   English

构建时 phonegap-plugin-push 错误 65:GoogleCloudMessaging.h 已弃用。 我们可以从项目中删除它吗? 快速解决?

[英]phonegap-plugin-push error 65 upon building: GoogleCloudMessaging.h is deprecated. Can we remove this from the project? Quickfix?

I have an iOS cordova project that we recently updated to platform iOS@5.0.0我有一个 iOS cordova 项目,我们最近更新到平台 iOS@5.0.0

Upon compiling the project, we encountered error 65 on phonegap-plugin-push/PlushPlugin.m Tried doing a pod install on the ios folder as according to the first solution here it would help resolve the problem.. however the problem still persist在编译项目时,我们在 phonegap-plugin-push/PlushPlugin.m 上遇到错误 65 尝试在 ios 文件夹上进行pod install ,根据这里的第一个解决方案,这将有助于解决问题。但是问题仍然存在

Upon reading further here , it says这里进一步阅读后,它说

On April 10, 2018, Google deprecated GCM. 2018 年 4 月 10 日,Google 弃用了 GCM。 The GCM server and client APIs were removed on May 29, 2019. Migrate GCM apps to Firebase Cloud Messaging (FCM), which inherits the reliable and scalable GCM infrastructure, plus many new features. GCM 服务器和客户端 API 已于 2019 年 5 月 29 日删除。将 GCM 应用程序迁移到 Firebase 云消息传递 (FCM),它继承了可靠且可扩展的 GCM 基础架构以及许多新功能。 See the migration guide to learn more请参阅迁移指南以了解更多信息

Since I am building the app for iOS, can I just remove this plugin?由于我正在为 iOS 构建应用程序,我可以删除这个插件吗? Is there a quick fix that we can do to immediately resolve the problem?有没有我们可以做的快速修复来立即解决问题?

Removed the component, as it was not necessary to build the app删除了组件,因为不需要构建应用程序

sudo cordova plugin rm phonegap-plugin-push

was able to build the app without error.能够毫无错误地构建应用程序。

The plugin has also been discontinued该插件也已停产

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM