简体   繁体   English

离子iOS构建因phonegap-plugin-push失败

[英]Ionic iOS build failing with phonegap-plugin-push

I have added the following package info in my package.json under cordovaPlugins array as the plugin documentation says. 如插件文档所述,我在cordovaPlugins数组下的package.json中添加了以下软件包信息。

{
  "variables": {
    "SENDER_ID": "XXXXXXX"
  },
  "locator": "phonegap-plugin-push"
}

However, the iOS build is failing and I'm unable to figure out what's wrong as I'm new to iOS app development. 但是,iOS构建失败,由于我是iOS应用程序开发的新手,所以我无法弄清楚出了什么问题。 Here's the partial log that shows the error, which majorly says, 这是显示错误的部分日志,主要是说:

'UIRemoteNotificationType' is deprecated: first deprecated in iOS 8.0 - Use UIUserNotificationType for user notifications and registerForRemoteNotifications for receiving remote notifications instead 不推荐使用“ UIRemoteNotificationType”:在iOS 8.0中首次不推荐使用-使用UIUserNotificationType接收用户通知,并使用registerForRemoteNotifications接收远程通知

and more of similar logs talking about UIRemoteNotificationTypeNone , UIRemoteNotificationTypeBadge etcetera. 以及更多类似的日志,讨论了UIRemoteNotificationTypeNoneUIRemoteNotificationTypeBadge等。

在此处输入图片说明

Can anyone help me out with this? 谁能帮我这个忙吗?

I played around a little and updated my ionic and cordova CLI's, also updated ios-deploy library and re-installed iOS platform. 我玩了一会儿,更新了我的Ionic和Cordova CLI,还更新了ios-deploy库并重新安装了iOS平台。 Things are working now. 现在一切正常。

I think ios-deploy was out dated. 我认为ios-deploy已过时。

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

相关问题 离子:无法在 ios 应用程序中安装 phonegap-plugin-push - IONIC:Unable to install phonegap-plugin-push in ios app phonegap-plugin-push不适用于iOS 9 - phonegap-plugin-push not working with iOS 9 如何在IOS中安装phonegap-plugin-push - How to install phonegap-plugin-push in IOS 在iOS上为Ionic 2项目安装phonegap-plugin-push时出错 - Getting error when installing phonegap-plugin-push on iOS for Ionic 2 project 错误安装 phonegap-plugin-push cordova-ios version >= 5 - Error install phonegap-plugin-push cordova-ios version >= 5 无法在iOS Cordova 8.0中安装phonegap-plugin-push - Failed to install phonegap-plugin-push in ios cordova 8.0 带有phonegap-plugin-push和Firebase的Cordova iOS通知。 没工作 - Cordova iOS notifications with phonegap-plugin-push and Firebase. No work 使用Cordova Push Phonegap-plugin-push 1.8.0进行PhoneGap Windows构建失败 - PhoneGap Windows Build Fail with Cordova Push phonegap-plugin-push 1.8.0 iOS:无法使用cordova插件phonegap-plugin-push设置GCM - IOS : Unable to setup GCM using cordova plugin phonegap-plugin-push iOS推送通知无法使用Phonegap-plugin-push通过GCM进行工作 - iOS Push Notifications not working through GCM using Phonegap-plugin-push
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM