我下载了 PushyMac来自 Apple 网站的示例应用程序,但无法弄清楚为什么我无法在应用程序启动时注册推送通知。这是我收到的错误
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)
知道为什么会发生这种情况吗?
最佳答案
当您的应用未正确进行代码签名时,就会发生这种情况
关于macos - 无法在 Mac 上注册 Apple 推送通知服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15127229/