作者valda (valda)
看板MacDev
标题[问题] 取得device token失败
时间Mon Aug 17 20:01:33 2015
请问有人遇过didFailToRegisterForRemoteNotificationsWithError,
error message为
Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment'
entitlement string found for application"
UserInfo=0x17407f140
{NSLocalizedDescription=no valid
'aps-environment'
entitlement string found for application
build 成Distribution ipa的时候就会出现这样的错误,
但是实机debug的时候可以正确的取得device token,
stack overflow上有人说把xcode的account打开後按下view detail,
refresh就可以了,我也照做了,还是不行,
也有人提到凭证错误的问题,
但是我的凭证状态又都是正常的push都有enable,
实在不知道该怎麽做了,请问有解法吗?
http://imgur.com/6E42Gn6
http://imgur.com/83g63Ed
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 211.72.69.111
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/MacDev/M.1439812896.A.996.html
1F:→ stweber2001: debug跟release的凭证不同,看起来你没有设置release 08/17 20:33
2F:→ stweber2001: 的凭证 08/17 20:33