【发布时间】:2015-07-14 03:40:22
【问题描述】:
我正在尝试开发一个具有推送通知功能的小型企业工具。我有通过开发证书和开发配置和证书到达的通知,但是,不是在发布模式下。
我得到的错误是
2015-07-14 15:34:32.507 My App Name[14254:2683449] 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)
如果我只想分发 .app 文件,是否应该使用开发者 ID?或者我可以使用我现在尝试做的事情,只使用 Mac Distribution 配置文件和 Mac App Distribution 证书吗?
【问题讨论】:
-
您是否在 App Store 之外分发应用程序?
-
你有没有机会尝试
codesign?是否有某些原因您不能在您的环境中使用它?
标签: macos apple-push-notifications provisioning-profile