为什么我无法对这个 Mac 应用程序进行代码签名?
几天前,我开始为 Mac OS X Lion 开发一个小型 Mac 应用程序。我以前从未上传过 Mac 应用程序,所以这是第一次。
这是我已经完成的操作:
- 创建应用程序 ID
- 创建证书
- 安装证书
- 创建生产配置文件
- 将应用程序 ID 更改为我生成的配置文件
- 基于“发布”创建新配置
- 将其代码签名更改为第 3 方 Mac 开发人员应用程序
- 选择我为存档方案创建的“生产”配置
- 已存档应用程序
现在我想“共享”该应用程序。 Xcode(顺便说一句,4.1)对我说,没有有效的签名身份。我需要像 iOS 中那样添加 Entitlement.plist 吗?我是不是忘记了什么?
更新:
我刚刚发现,我必须对我的应用程序进行两次签名。我仍然选择“3rd Party Mac Developer Application”,但在提交我的应用程序时无法选择安装程序证书。
I started some days ago a small Mac app for Mac OS X Lion. I've never uploaded a Mac app before, so this is the very first time.
This is what I've already done:
- Created App ID
- Created Certificate
- Installed Certificate
- Created a Production Provisioning Profile
- Changed the App ID to my generated one
- Created a new Configuration based on "Release"
- Changed its Code Signing to 3rd Party Mac Developer Application
- Selected the "Production"-Configuration which I created for the Archive-Scheme
- Archived the Application
Now I wanted to "Share" the Application. Xcode (4.1 btw) said to me, there were no valid signing identities. Does I need to add an Entitlement.plist like in iOS? Have I forgotten something?
Update:
I just figured out, that I have to sign my app twice. I've still selected "3rd Party Mac Developer Application" but I can't select the Installer cert while submitting my app.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否安装了 WWDR 中间证书?我遇到了完全相同的问题,我的问题是中间证书没有安装在我的机器上。诚然,苹果并没有明确表示你需要安装它,更像是建议。但是,你确实需要它。您可以在此处找到它,或者访问 Mac 开发人员中心下的开发人员证书实用程序。
Have you installed the WWDR intermediate certificate? I just had the exact same problems and my issue was that the intermediate certificate was not installed on my machine. Granted, nowhere does Apple explicitly say you need it installed, more like suggestions. But, you do need it. You can find it here, or by going to Developer Certificate Utility under the Mac Developer Center.
我让它工作了。我删除了我的应用程序并创建了新的。
我没有创建新的配置,只是将目标的代码签名身份更改为第 3 方 Mac 开发人员应用程序。之后,我存档了该应用程序,然后我能够选择安装程序证书。
I got it to work. I deleted my App and created it new.
I didn't create a new Configuration, and I only changed the Code Signing Indentity of the Target to 3rd Party Mac Developer Application. After this, I archived the app and then I was able to select the installer cert.