[问题] 取得device token失败

楼主: valda (valda)   2015-08-17 20:01:33
请问有人遇过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
作者: stweber2001 (Weber)   2015-08-17 20:33:00
debug跟release的凭证不同,看起来你没有设置release的凭证

Links booklink

Contact Us: admin [ a t ] ucptt.com