运行离子cordova运行ios时出错 - 似乎与推送通知

时间:2017-12-05 11:05:19

标签: xcode ionic-framework apple-push-notifications firebase-cloud-messaging

enter image description here 我正试图在我的离子v1项目中测试cordova-plugin-firebase 我在运行时遇到错误

ionic cordova run ios 

如果我运行命令

ionic cordova build ios

我没有收到任何错误消息。此外, 如果我在Xcode中打开项目并尝试在模拟器(iphone 8)中运行应用程序,它会成功运行 ,但在xcode中使用设备运行应用程序(连接的iphone 4s)在运行时也显示相同的错误

ionic cordova run ios.

我得到的错误是"自动签名无法解决" nativeApp"目标的权利。自动签名无法将aps-environment权利添加到您的配置文件"

我看到此问题的解决方案之一是在您的" target>下启用推送通知。能力&#34 ;.但是当我在项目导航器中时,我似乎无法在Xcode中找到这个选项。我目前正在使用XCode 9.1

1 个答案:

答案 0 :(得分:0)

尝试这两点: -

在Code Signing Identity下,将iPhone Distribution更改为iPhone Developer for Debug部分。  推送通知: - go Target->能力和打开推送通知。