[英]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. 以及更多类似的日志,讨论了
UIRemoteNotificationTypeNone
, UIRemoteNotificationTypeBadge
等。
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.