【问题标题】:How should I sign a Mac app for push notifications?我应该如何为推送通知签署 Mac 应用程序?
【发布时间】: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


【解决方案1】:

您可以尝试使用codesign 对应用进行签名

类似codesign --sign "Developer ID Application: MyCompany (123)" /path/to/myapp.app

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-04-29
    • 1970-01-01
    • 1970-01-01
    • 2023-03-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多