无法在Mac上注册Apple推送通知服务

Ton*_*ony 4 macos cocoa push-notification apple-push-notifications

我从Apple网站下载了PushyMac示例应用程序,但无法弄清楚为什么我无法在应用程序启动时注册推送通知.这是我得到的错误

2013-02-27 19:53:49.737 PushyMac[61525:303] applicationDidFinishLaunching:
2013-02-27 19:53:49.738 PushyMac[61525:303] didFinishLaunchingWithOptions: 
    notification name NSApplicationDidFinishLaunchingNotification
2013-02-27 19:53:49.753 PushyMac[61525:303] application:didFailToRegisterForRemoteNotificationsWithError: with
error = Error  Domain=NSOSStatusErrorDomain Code=1 "The operation
couldn’t be completed. (OSStatus error 1.)" (kCFHostErrorHostNotFound / 
kCFStreamErrorSOCKSSubDomainVersionCode / kCFStreamErrorSOCKS5BadResponseAddr / 
kCFStreamErrorDomainPOSIX / evtNotEnb / siInitSDTblErr / kUSBPending / dsBusError / 
kStatusIsError / kOTSerialSwOverRunErr / cdevResErr / EPERM:  / Error code is the version 
of SOCKS which the server wishes to use /  / POSIX errno; interpret using <sys/errno.h>  / 
event not enabled at PostEvent / slot int dispatch table could not be initialized. /  / 
bus error /  /  / Couldn't get a needed resource; alert / Operation not permitted)
Run Code Online (Sandbox Code Playgroud)

知道为什么会这样吗?

小智 7

如果您的应用未正确签名,则会发生这种情况