来自Apple的电子邮件 - “Missing Push Notification Entitlement” [英] email from Apple - "Missing Push Notification Entitlement"
问题描述
我一直在努力向我的应用提交3天的更新,每次我都会收到来自Apple的电子邮件说明:
I have been trying to submit an update to my app for 3 days now, and every time that I do I get an email from Apple stating:
缺少推送通知权利 - 您的应用似乎包含用于向Apple推送通知服务注册的
API,但
应用签名的权利不包括aps-environment
权利。
Missing Push Notification Entitlement - Your app appears to include API used to register with the Apple Push Notification service, but the app signature's entitlements do not include the "aps-environment" entitlement.
我已尽力尝试,包括制作全新的配置文件,设置权利.plist以及所有内容我在提交后不久就会收到同样的电子邮件。我打开了我正在使用的配置文件,它包含了aps-entitlement。
I have tried everything that I can, including making brand new provisioning profiles, setting an entitlement.plist and everything that I do results in the same email shortly after submission. I have opened the provisioning profile I am using and it DOES include the aps-entitlement.
当我构建或存档应用程序时,Xcode没有给我任何错误或警告,所以每次我尝试新的东西,我必须经历相同的过程。
Xcode gives me no errors or warnings when I build or archive the app, so everytime I try something new I have to go through the same process.
还有其他任何我可以做的更新我的应用程序并添加推送通知吗?我在这里和谷歌上看了很多其他问题,我正在撕扯我的头发!
Is there ANYTHING else I can do to update my app and add push notifications? I have looked at many other questions on here and on google and am tearing my hair out!
编辑:
人们继续认为我没有看过其他解决方案。我有。从已经回答的问题开始,这里有一些建议:
People continue to think that I haven't looked at other solutions. I have. From the question this has been linked to as already answered, here are the suggestions it makes:
重新创建配置文件
Re-create the provisioning profile
我做到了这一点。我也做了全新的。我已经验证它们中包含aps-environment标志。
I have done this. I also made brand new ones. I have verified that they include the aps-environment flag in them.
重新创建配置文件
Re-create the provisioning profile
同样,我已经这样做了。很多次现在。
Again, I have done this. Many times now.
在任何文本编辑器中打开您的供应配置文件并搜索
环境,您必须找到:aps -environment
Open your Provisioning Profile in any Text Editor and search for "environment" and you must find: aps-environment
我使用的配置文件有这个。
The profiles I am using have this.
删除对服务的调用
Remove calls to the service
不相关,因为我正在尝试添加服务。
Not relevant as I am trying to ADD the service.
启用服务并重新创建个人资料
Enable the service and re-create the profile
再次,这已经完成。
重新创建配置文件
Re-create the provisioning profiles
再次。
删除引用推送通知系统的库
Remove the library that is referencing the push notification system
如上所述,我正在添加推送通知,而不是根据此处链接的问题将其删除。
As above, I am adding Push Notification, not looking to remove it as per the question linked here.
我不想变得粗鲁,但是当我说的时候请理解我花了3天时间寻找答案我是认真的。这个问题不仅仅是关于删除,还没有添加推送通知,我已经添加了有关尝试这些方法的信息。
I don't want to come off as rude, but please understand that when I say I have spent 3 days looking for answers I am being serious. Not only does this question ask about REMOVING, not adding Push Notifications, I had already added information about trying these methods.
有人可以帮助我,或者我应该使用我对Apple的一张支持票吗?
Can someone please help me, or should I just use one of my support tickets with Apple over this?
推荐答案
我已经解决了这个问题,所以这里有其他可能来的答案在将来的这个过程中。
I have solved this, so here is the answer for others who may come across this in the future.
我必须删除我在当天早些时候尝试解决问题时创建的Entitlements plist,然后通过Xcode重新创建它并添加与我的配置文件中的信息相同。我还必须在项目和目标上执行此操作。
I had to delete the Entitlements plist I had created when trying to solve the issue earlier in the day, then recreate it through Xcode and add in the same information that was in my provisioning profile. I also had to do this on BOTH the project and the target.
我还没有通过此提交收到电子邮件,iTunes Connect上的二进制详细信息现在列出APS环境:制作。
I have not received the email over this submission, and the binary details on iTunes Connect now list "APS Environment: Production".
感谢你们和我一起试图帮助我解决这个问题的人士。
Thank you to dpassage and maddy who both attempted to help me with the question.
这篇关于来自Apple的电子邮件 - “Missing Push Notification Entitlement”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!